mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 08:00:43 +00:00
Add retreating warship indicator and warship 2-color treatment
Warships now render with a dedicated center accent band so their state reads at a glance: - Normal: center + outer ring share the territory color (2-color look), hull uses the border color. - Angry (attacking): outer ring and center turn red. - Retreating to repair: the center blinks black. The warship sprite center moved to its own gray value (100) in the unit atlas so the shader can drive it via a new fourth replacement band, with no per-unit-type branching — the missiles' shared 130 blend band is untouched. Warship repair-retreat (warshipState.state === "retreating") now feeds the existing UnitState.retreating boolean in UnitView, which UnitPass maps to a FLAG_RETREATING instance flag.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 595 B |
Reference in New Issue
Block a user