feat: Add EnhancedGridMap for dynamic grid generation, pathfinding, and network synchronization, and introduce core game scripts for Tekton entities and managers.

This commit is contained in:
Yogi Wiguna
2026-02-13 13:14:37 +08:00
parent 0ee5051ebd
commit ad16f5942b
9 changed files with 354 additions and 75 deletions
+3 -1
View File
@@ -580,7 +580,9 @@ func clear_path_visualization(floor_index: int = 0):
# Cost calculation and updates
func get_cell_cost(x: int, z: int, floor_index: int = 0) -> float:
var cell_item = get_cell_item(Vector3i(x, floor_index, z))
if cell_item in non_walkable_items:
# Block -1 (Void) and Non-Walkable Items
if cell_item == -1 or cell_item in non_walkable_items:
return INF
elif cell_item == hover_item:
return 0.5