mantain mask, purple attack, star enemy
This commit is contained in:
parent
66ecb04bd1
commit
e32ed2f53a
10 changed files with 213 additions and 18 deletions
|
|
@ -1,5 +1,7 @@
|
|||
extends Enemy
|
||||
|
||||
@onready var sprite : AnimatedSprite2D = $Anim
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
super._process(delta)
|
||||
queue_redraw()
|
||||
|
|
@ -8,3 +10,10 @@ func _draw():
|
|||
if current_charge > 0 and target_node:
|
||||
var color = Color.RED.lerp(Color.WHITE, current_charge / attack_charge_time)
|
||||
draw_dashed_line(Vector2.ZERO, to_local(target_node.global_position), color, 1, 5)
|
||||
|
||||
|
||||
func _sprite_anim():
|
||||
if current_charge > 0.1:
|
||||
sprite.play("attack")
|
||||
else:
|
||||
sprite.play("default")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue