Godot version of Conway's game of life
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

45 lines
1.5 KiB

[gd_scene load_steps=4 format=3 uid="uid://d3twfk56sjf2m"]
[ext_resource type="Script" path="res://world.gd" id="1_wavft"]
[ext_resource type="Texture2D" uid="uid://c2vm5pfsamed4" path="res://icon.svg" id="2_8r6bn"]
[ext_resource type="PackedScene" uid="uid://cy6vsgu8o0rad" path="res://scenes/fps_counter/fps_counter.tscn" id="3_ves6s"]
[node name="World" type="Node2D"]
position = Vector2(-152, 0)
script = ExtResource("1_wavft")
cell_texture = ExtResource("2_8r6bn")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Debug" type="MarginContainer" parent="CanvasLayer"]
offset_right = 40.0
offset_bottom = 40.0
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Debug"]
layout_mode = 2
[node name="FPSCounter" parent="CanvasLayer/Debug/VBoxContainer" instance=ExtResource("3_ves6s")]
layout_mode = 2
text = "FPS: 0"
[node name="WorldSeed" type="Label" parent="CanvasLayer/Debug/VBoxContainer"]
layout_mode = 2
text = "World Seed: 0"
[node name="GenerationCounter" type="Label" parent="CanvasLayer/Debug/VBoxContainer"]
layout_mode = 2
text = "Generation: 1"
[node name="LivingCellsCounter" type="Label" parent="CanvasLayer/Debug/VBoxContainer"]
layout_mode = 2
text = "Living Cells: 0"
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(464, 200)
[node name="GenerationTimer" type="Timer" parent="."]
wait_time = 0.05
one_shot = true
autostart = true
[connection signal="timeout" from="GenerationTimer" to="." method="_on_generation_timer_timeout"]