Adds better folder structure, and adds simple dialogue system

This commit is contained in:
2024-10-06 15:57:47 +02:00
parent 2cf9884f9d
commit 0f6f75ea44
31 changed files with 178 additions and 53 deletions

21
Scenes/Worm/enemy.gd Normal file
View File

@@ -0,0 +1,21 @@
extends Node2D
signal enemy_attacked
func button_pressed():
queue_free()
func _on_first_timer_timeout() -> void:
scale = Vector2(1.2,1.2)
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()