🐛FIX: Error en el draw del enemigo
This commit is contained in:
1 parent
93497002ff
commit
37206548e1
1 file changed
+5
-5
@@ -609,10 +609,10 @@ func _draw_enemy_health_bar() -> void:
|
||||
|
||||
# Draws floating damage numbers that drift upward and fade out.
|
||||
func _draw_damage_texts() -> void:
|
||||
var font: Font = ThemeDB.get_default_theme().get_font("font", "Label")
|
||||
if font == null:
|
||||
return
|
||||
|
||||
for entry in _damage_texts:
|
||||
var alpha: float = clamp(entry.timer, 0.0, 1.0)
|
||||
draw_string(
|
||||
entry.local_pos,
|
||||
entry.text,
|
||||
Color(1, 1, 1, alpha)
|
||||
)
|
||||
draw_string(font, entry.local_pos, entry.text, Color(1, 1, 1, alpha))
|
||||
Reference in new issue
Block a user