Skip to content

Capture the Flag

Two teams — Blue and Red — each defend a home base while trying to steal the other team’s flag.

  1. Steal the flag — walk to the enemy’s flag spot (the small circle inside their base) to pick it up.
  2. Carry it home — run the flag back to your own base zone to score a point.
  3. Defend — tag an enemy flag carrier (get within 5 m of them) to make them drop it. The dropped flag resets: anyone can walk back to the flag spot to pick it up again.

All players start on even teams (auto-balanced as players join). There are no special roles — everyone attacks and defends simultaneously.

Place one zone before starting:

ZonePurpose
Play AreaOverall arena boundary — both bases auto-place inside it

When you place the play area, Blue Base (left third), Red Base (right third), and the two flag spots auto-place inside it. No extra placement needed.

  • Coordinate: send some players to attack while others guard your base.
  • Flag carriers glow yellow on the GM map, making them easy targets.
  • After a drop, the flag resets immediately — send a teammate to pick it up before the enemy does.

CTF is the flagship for the capture & carry pattern and the worked example in Tutorial: teams, items & interactions.

  • Demonstrates: teams and { byTeam } scoring, itemTypes + items, auto walk-over pickups gated by team, spawn_item (atPoint to reset, at to drop in place), and nested auto-placing bases/points.
  • Source: apps/wage-engine/src/games/capture_the_flag/game.yaml