mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-17 07:30:19 +02:00
Progress on the boss
This commit is contained in:
18
src/Boss/SlimeBoss/States/Stomp.gd
Normal file
18
src/Boss/SlimeBoss/States/Stomp.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
extends "res://Boss/SlimeBoss/States/BossState.gd"
|
||||
|
||||
onready var stomp_hitbox = owner.get_node("StompHitbox/CollisionShape2D")
|
||||
|
||||
func enter():
|
||||
stomp_hitbox.disabled = false
|
||||
|
||||
func exit():
|
||||
stomp_hitbox.disabled = true
|
||||
|
||||
func update(delta):
|
||||
play_directional_animation("Charge", owner.last_look)
|
||||
|
||||
func _on_animation_finished(anim_name):
|
||||
anim_name = get_base_anim_name(anim_name)
|
||||
assert(anim_name == "Charge")
|
||||
|
||||
emit_signal("finished")
|
||||
Reference in New Issue
Block a user