added the game

This commit is contained in:
JHDev2006
2025-09-13 16:30:32 +01:00
parent 5ef689109b
commit 3773bdaf64
3616 changed files with 263702 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
extends Enemy
@export var held_scene: PackedScene = null
func stomped_on(player: Player) -> void:
player.enemy_bounce_off()
AudioManager.play_sfx("enemy_stomp", global_position)
summon_held()
func summon_held() -> Node:
var node = held_scene.instantiate()
node.global_position = global_position
node.direction = direction
if $TrackJoint.is_attached:
get_parent().owner.add_sibling(node)
else:
add_sibling(node)
queue_free()
return node
func fireball_hit(fireball: Node2D) -> void:
var held = summon_held()
held.kick(fireball)