Adds Initial animations and enemy spawning

This commit is contained in:
2024-10-05 17:57:40 +02:00
parent 1cda262976
commit 1a4878f32e
29 changed files with 522 additions and 26 deletions

View File

@@ -1,5 +1,7 @@
extends Node2D
signal enemy_attacked
func button_pressed():
queue_free()
@@ -9,3 +11,11 @@ func _on_first_timer_timeout() -> void:
func _on_second_timer_timeout() -> void:
scale = Vector2(1.4,1.4)
func _ready() -> void:
$AnimatedSprite2D.play("new_animation")
func _on_animated_sprite_2d_animation_finished() -> void:
enemy_attacked.emit()
queue_free()