feat: implement main scene initialization and add screen shake and stop-n-go game managers

This commit is contained in:
Yogi Wiguna
2026-03-31 20:55:15 +08:00
parent ad695292dc
commit 193aae94ba
3 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -360,8 +360,8 @@ func _apply_arena_setup():
for z in range(gridmap.rows):
var current_pos = Vector2i(x, z)
if current_pos in non_walkable_coords:
gridmap.set_cell_item(Vector3i(x, 0, z), -1) # empty space / void
gridmap.set_cell_item(Vector3i(x, 1, z), TILE_OBSTACLE) # wall block
gridmap.set_cell_item(Vector3i(x, 0, z), TILE_OBSTACLE) # wall block on Floor 0
gridmap.set_cell_item(Vector3i(x, 1, z), -1)
continue
var tile_id = TILE_WALKABLE
@@ -379,7 +379,7 @@ func _apply_arena_setup():
_create_room_with_edge_walls(gridmap, 7, 6, 11, 9, r1_entrances)
# Non-walkable obstacle inside Room 1
gridmap.set_cell_item(Vector3i(9, 1, 8), TILE_OBSTACLE)
gridmap.set_cell_item(Vector3i(9, 0, 8), TILE_OBSTACLE)
# Room 2: (15,1) to (19,5) - 5x5 Area. Boundaries: X[15..19], Z[1..5]
var r2_entrances = [Vector2i(15, 2), Vector2i(17, 1), Vector2i(19, 2), Vector2i(18, 5)]