boss start, some enemies

This commit is contained in:
Daniel Kauss Serna 2026-04-16 18:53:36 +02:00
parent 93968ff9fb
commit 66ecb04bd1
123 changed files with 1884 additions and 499 deletions

View file

@ -1 +1,15 @@
extends Enemy
@onready var sprite : AnimatedSprite2D = $AnimatedSprite2D
func _sprite_anim():
if target_node.position.x > position.x:
if current_charge > 0.1:
sprite.play("attack_right")
else:
sprite.play("run_right")
else:
if current_charge > 0.1:
sprite.play("attack_left")
else:
sprite.play("run_left")