feat: add UI minimap and accessibility controls

This commit is contained in:
goose
2026-10-03 23:23:36 -04:00
parent 6697c05b56
commit 9f43e187d3
21 changed files with 610 additions and 4 deletions
+4 -1
View File
@@ -12,6 +12,9 @@ const MOVEMENT_DURATION := float(MOVEMENT_DURATION_MS) / 1000.0
const IMPACT_DURATION := float(IMPACT_DURATION_MS) / 1000.0
const DEATH_DURATION := float(DEATH_DURATION_MS) / 1000.0
const FLASH_COLOR := Color(1.0, 0.45, 0.45, 1.0)
# Shape and text duplicate the color cue so feedback remains distinguishable for
# players with color-vision differences.
const DAMAGE_MARKER_PREFIX := "✦ -"
var _test_mode := false
var _movement_tween_configuration := {}
@@ -128,7 +131,7 @@ func _show_death(event: GameEvent, actor_lookup: Callable) -> void:
func _show_damage_label(actor_view: ActorView, damage: int) -> void:
var label := Label.new()
label.text = "-%d" % damage
label.text = "%s%d" % [DAMAGE_MARKER_PREFIX, damage]
label.position = actor_view.global_position + Vector2(6, -14)
label.z_index = 10
add_child(label)