From ecd2b9f952e6db5ca2fdfa72711076b6ce18584f Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Wed, 16 Aug 2023 22:08:57 -0400 Subject: [PATCH] Replacign range with CellStates for legibility --- world.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.gd b/world.gd index 1c72341..5275304 100644 --- a/world.gd +++ b/world.gd @@ -200,7 +200,7 @@ func generate_world() -> void: cell_states.append([]) cell_states[x].resize(world_size.x) for y in range(world_size.y): - var is_alive: int = randi_range(0, 1) + var is_alive: int = randi_range(CellStates.DEAD, CellStates.ALIVE) total_living += is_alive cell_states[x][y] = is_alive cell_ids[x][y] = create_cell(Vector2(x, y), bool(is_alive))