feat: Introduce an EnhancedGridMap with advanced generation, randomization, pathfinding, and data serialization, along with new player, powerup, and portal managers.
This commit is contained in:
@@ -479,9 +479,9 @@ func _refresh_tiles():
|
||||
|
||||
for x in range(GRID_SIZE):
|
||||
for z in range(GRID_SIZE):
|
||||
# 1. Check if Floor 0 is a wall or empty (non-walkable)
|
||||
# 1. Check if Floor 0 is a wall or void
|
||||
var floor_0_item = gridmap.get_cell_item(Vector3i(x, 0, z))
|
||||
if floor_0_item == 4 or floor_0_item == -1:
|
||||
if floor_0_item in [4, -1]:
|
||||
continue
|
||||
|
||||
# 1.5. Prevent spawning directly under portal doors
|
||||
|
||||
Reference in New Issue
Block a user