|
@ -106,6 +106,7 @@ func update_generation_ui() -> void: |
|
|
func start_conway() -> void: |
|
|
func start_conway() -> void: |
|
|
clear_world() |
|
|
clear_world() |
|
|
generate_world() |
|
|
generate_world() |
|
|
|
|
|
update_previous_generation_hashes() |
|
|
|
|
|
|
|
|
generation = 1 |
|
|
generation = 1 |
|
|
evolution_is_stalled = false |
|
|
evolution_is_stalled = false |
|
@ -270,8 +271,6 @@ func generate_world() -> void: |
|
|
cell_states[x][y] = is_alive |
|
|
cell_states[x][y] = is_alive |
|
|
cell_ids[x][y] = create_cell(Vector2(x, y), bool(is_alive)) |
|
|
cell_ids[x][y] = create_cell(Vector2(x, y), bool(is_alive)) |
|
|
|
|
|
|
|
|
update_previous_generation_hashes() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_generation_timer_timeout() -> void: |
|
|
func _on_generation_timer_timeout() -> void: |
|
|
process_generation() |
|
|
process_generation() |
|
|