settings, small fixes

This commit is contained in:
Daniel Kauss Serna 2026-02-15 16:17:51 +01:00
parent b12c193636
commit e08e3ebb13
174 changed files with 997 additions and 1040 deletions

View file

@ -1,6 +1,9 @@
extends Enemy
func _process(delta: float) -> void:
queue_redraw()
func _draw():
if charge > 0.1:
var color = Color.RED.lerp(Color.WHITE, charge / charge_time)
draw_dashed_line(Vector2.ZERO, to_local(player.global_position), color, 1, 5)
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)