Trap explosions with damage and health bar depletion.

This commit is contained in:
2025-12-29 15:03:05 -05:00
parent e632e54cba
commit 84bf495d11
16 changed files with 149 additions and 30 deletions

View File

@@ -9,3 +9,12 @@ func _ready() -> void:
func _on_timer_timeout() -> void:
print("Done")
queue_free()
func proximal_shake(distance : float) -> void:
print(Input.get_connected_joypads())
if !Game.player:
return
var d = global_position.distance_squared_to(Game.player.global_position)
if d <= distance * distance:
Input.start_joy_vibration(0, 1,1,1000)