feat: Implement the main game scene, initializing core managers, a new message bar system, and a pre-game countdown.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user