feat: Implement the main game scene, initializing core managers, a new message bar system, and a pre-game countdown.

This commit is contained in:
2026-03-03 05:01:59 +08:00
parent e6dceaf173
commit 09d08093e2
4 changed files with 242 additions and 6 deletions
+5
View File
@@ -408,6 +408,11 @@ func _randomize_tiles_around_player(player: Node):
# Check if position is valid
if not enhanced_gridmap.is_position_valid(pos):
continue
# EXTRA CHECK: Do not spawn tiles on void (-1) or walls (4) on Floor 0
var floor_0_item = enhanced_gridmap.get_cell_item(Vector3i(pos.x, 0, pos.y))
if floor_0_item == -1 or floor_0_item == 4:
continue
# Check if there are tiles nearby or if empty
var current_item = enhanced_gridmap.get_cell_item(cell)