game: add shader to indicate low hp

This commit is contained in:
2025-08-21 02:10:09 +02:00
parent 632643a130
commit 8f02850a73
7 changed files with 92 additions and 1 deletions

View File

@@ -56,6 +56,10 @@ func do_movement(delta: float) -> void:
_do_simple_movement()
else:
_do_nav_agent_movement()
if velocity.x < 0:
sprite_2d.flip_h = true
else:
sprite_2d.flip_h = false
func _has_direct_path():