Adds some polishing and bg music
This commit is contained in:
@@ -7,7 +7,7 @@ func button_pressed():
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
$AnimatedSprite2D.modulate=color
|
||||
|
||||
#$AnimatedHack.modulate = color
|
||||
|
||||
func _ready() -> void:
|
||||
$AnimatedSprite2D.play("attack")
|
||||
@@ -20,8 +20,17 @@ func _on_animated_sprite_2d_animation_finished() -> void:
|
||||
enemy_attacked.emit()
|
||||
$AnimatedSprite2D.play("attack_2")
|
||||
return
|
||||
print_debug($AnimatedSprite2D.animation)
|
||||
|
||||
match $AnimatedSprite2D.animation:
|
||||
"defeated_3", "defeated_2", "defeated_4", "attack_2":
|
||||
"attack_2":
|
||||
$AnimatedHack.play("default")
|
||||
$AnimatedHack.visible = true
|
||||
$AnimatedSprite2D.visible = false
|
||||
|
||||
"defeated_3", "defeated_2", "defeated_4":
|
||||
queue_free()
|
||||
return
|
||||
|
||||
|
||||
func _on_animated_hack_animation_finished() -> void:
|
||||
queue_free()
|
||||
|
Reference in New Issue
Block a user