settings, small fixes
This commit is contained in:
parent
b12c193636
commit
e08e3ebb13
174 changed files with 997 additions and 1040 deletions
|
|
@ -1,14 +1,14 @@
|
|||
extends Enemy
|
||||
|
||||
func _draw():
|
||||
if charge > 0.1:
|
||||
var color = Color.RED.lerp(Color.WHITE, charge / charge_time)
|
||||
if player:
|
||||
draw_dashed_line(Vector2.ZERO, to_local(player.global_position), color, 1, 5)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
super._process(delta)
|
||||
if (charge > 0.1):
|
||||
$Anim.play("attack")
|
||||
else:
|
||||
$Anim.play("default")
|
||||
#func _draw():
|
||||
#if charge > 0.1:
|
||||
#var color = Color.RED.lerp(Color.WHITE, charge / charge_time)
|
||||
#if player:
|
||||
#draw_dashed_line(Vector2.ZERO, to_local(player.global_position), color, 1, 5)
|
||||
#
|
||||
#func _process(delta: float) -> void:
|
||||
#super._process(delta)
|
||||
#if (charge > 0.1):
|
||||
#$Anim.play("attack")
|
||||
#else:
|
||||
#$Anim.play("default")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue