Port: Ugh-Guys RTS
site/media/lessons/ports-batch.lesson.ts (5 steps) ugh-guys (packages/editor/template/src/examples/ugh-guys/) is a port of
atxgreene/Ugh-Guys (“Shadow of the Watchers”). It
reuses vgai’s shipped RTS capability directly: the RTSUnit (a navmesh crowd agent) and
RTSDirector (which builds the recast navmesh from navRole-tagged meshes and gives each unit
an agent), plus an orthographic isometric camera.
Run it
Section titled “Run it”-
Open the ugh-guys scene. Load
examples/scenes/ugh-guys.vscn.json.
The ported isometric scene. -
Enter play mode — the director builds the navmesh. On play, the
RTSDirectorbakes the recast navmesh from the tagged meshes and assigns each unit a crowd agent.
The director builds the navmesh at runtime. -
Pan across the squad with the camera. Use the camera controls to look over the units.
The isometric squad view. -
Watch the units stand on the navmesh. Each unit is a crowd agent positioned on the baked navmesh.
Units as crowd agents on the navmesh. -
Stop play mode. Press Stop (or
Escape).
Why this matters
Section titled “Why this matters”Like the other ports, Ugh-Guys reuses first-party capability — the same RTSUnit /
RTSDirector the RTS capstone uses — rather than re-implementing
pathfinding. The port is mostly mapping the original’s content and tags onto vgai’s model.
Recap
New functionality
- Ran a ported third-party RTS on vgai
- Saw units on a runtime-built navmesh
New concepts & skills
- Ports reuse shipped capability (RTSUnit + RTSDirector)
- The director builds the recast navmesh + crowd at runtime
- Units are crowd agents
Next lesson → Port: SimCity
See also
Section titled “See also”- Capstone: RTS — the reused capability.
- Navigation & pathfinding · Loading Existing Games