More work on maps and multiplayer

This commit is contained in:
2026-01-15 11:10:12 -05:00
parent dc8585b1f0
commit bc48e9cea2
25 changed files with 3740 additions and 136 deletions

View File

@@ -79,10 +79,10 @@ func add_trap(trap : Trap, crd : Vector3i) -> void:
trap.square = crd
traps[crd] = trap
trap.position = Vector3(crd) + Vector3(.5, 0, .5)
add_child(trap)
add_child(trap, true)
func add_projectile(shot : Projectile) -> void:
add_child(shot)
add_child(shot, true)
func remove_trap_square(crd : Vector3i) -> void:
traps.erase(crd)
@@ -104,7 +104,7 @@ func is_valid_trap_square(crd : Vector3i) -> bool:
func add_vfx(vfx, crd : Vector3i) -> void:
vfx.position = Vector3(crd) #+ Vector3(0.5, 0, 0.5)
add_child(vfx)
add_child(vfx, true)
func activate_trap(crd : Vector3i) -> void:
if traps.has(crd):