• Game
  • Leaderboards
  • Resources
  • Docs

Improved Unit Orientation and Action States

May 18, 2026 - v0.9.4

Improved Unit Orientation and Action States

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 0 pointing in the positive X direction.
    • This field is currently used only to improve rendering in the 3D client.
  • Added new idle and moving actions 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.intent should now be used only for intentions, while unit.action tracks what the unit is actively doing.
  • Added a UnitActions enum to the exports from programming-game/types.

Miscellaneous

  • unit.action can no longer be null.
    • Units now always have an action, and units doing nothing will be idle.
  • unit.intention can no longer be null.
    • Units now always have an intention. Units taking no action will use IntentType.idle.

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.