boss start, some enemies
This commit is contained in:
parent
93968ff9fb
commit
66ecb04bd1
123 changed files with 1884 additions and 499 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue