feat: Add initial core game scene, player script, and static Tekton manager.

This commit is contained in:
Yogi Wiguna
2026-03-23 10:22:55 +08:00
parent b1c5e75a3e
commit d0e90fd2aa
3 changed files with 14 additions and 4 deletions
+8
View File
@@ -1217,6 +1217,14 @@ func is_position_occupied(pos: Vector2i) -> bool:
if p.is_player_moving and p.target_position == pos:
return true
# Prevent overlap with Static Tekton Stands (3x3 area)
if enhanced_gridmap:
for stand in get_tree().get_nodes_in_group("StaticTektonStands"):
var local_pos = enhanced_gridmap.to_local(stand.global_position)
var stand_map_pos = enhanced_gridmap.local_to_map(local_pos)
if abs(pos.x - stand_map_pos.x) <= 1 and abs(pos.y - stand_map_pos.z) <= 1:
return true
return false
func find_valid_starting_position() -> Vector2i: