- Game
- Leaderboards
- Resources
- Docs
Improved Unit Orientation and Action States
May 18, 2026 - v0.9.4
Programming Game v0.9.4 improves unit orientation and animation handling, adds a facing field, and introduces idle and moving action states.
New Features
- Added a new unit field,
facing, to represent the direction a unit is looking.- This field is measured in radians, with
0pointing in the positive X direction. - This field is currently used only to improve rendering in the 3D client.
- This field is measured in radians, with
- Added new
idleandmovingactions to better capture what a unit is actually doing.- Previously, we only had
unit.intent, which indicates what a unit is trying to do. - That was insufficient because units may move closer when they are out of range, or do nothing when they are stunned.
unit.intentshould now be used only for intentions, whileunit.actiontracks what the unit is actively doing.
- Previously, we only had
- Added a
UnitActionsenum to the exports fromprogramming-game/types.
Miscellaneous
unit.actioncan no longer benull.- Units now always have an action, and units doing nothing will be
idle.
- Units now always have an action, and units doing nothing will be
unit.intentioncan no longer benull.- Units now always have an intention. Units taking no action will use
IntentType.idle.
- Units now always have an intention. Units taking no action will use
Bug Fixes
- Fixed various issues with client-side animations playing incorrectly.
- Fixed various issues with characters facing the wrong direction.
- Fixed an issue with OG images returning 404 errors.