design draft

63. The space games

Status: unimplemented — design draft. Orbit League and Belt 2200 run today on their own code at /realms/orbit-league and /realms/belt-2200, over the space primitives already in metaverse/ (docs/metaverse/space.md). This chapter plans rebuilding both only from the OpenAgents Metaverse Engine's earlier chapters. Nothing here runs yet.

Two games share the OpenAgents Metaverse's space layer. Orbit League is rocket roadsters playing ball in a glass arena in orbit, where the station spins down every 90 seconds and gravity fades for half a minute, or the match moves into a spinning drum. Belt 2200 is hard science-fiction strategy on the real orbits of 2200: you run a station at Ceres and send ships on transfers whose delta-v, propellant and time are computed, not invented.

What this chapter teaches

  • One physics foundation under two very different games: contact-rich arcade driving and orbital mechanics on a twelve-decade map.
  • Game fidelity as a declared profile over the same state an engineering study would use.
  • Two kinds of multiplayer: a server-stepped ball and lockstep orders.

The method

Orbit League.

  • Bodies and contact (chapters 18, 20–22): cars, ball and arena as rigid bodies stepped at 120 Hz substeps; sphere, box and mesh contacts; swept tests for the fast ball.
  • Gravity and thrust (chapters 41, 44): a game budget for the boost; the drum's centrifugal down and Coriolis on what moves.
  • Rooms (chapters 49, 50): the room server steps the ball at 120 Hz against the cars the players report and sends the state at 60 Hz.

Belt 2200.

  • Orbits (chapters 39, 40): Kepler orbits and the mean-element ephemeris, now with their error against a pinned table stated.
  • Transfers (chapters 41, 42): Lambert transfers offered as economy and fast, burns that consume propellant by the rocket equation.
  • Time (chapter 46): game speed that stops for arrivals and burn boundaries.
  • Space for drawing (chapter 2): f64 heliocentric state, a floating origin and f32 only in camera space.
  • Lockstep (chapters 5, 50): orders name the tick they take effect; state hashes compared every few ticks name the first desync.
  • Fidelity (chapter 48): both games declare the game profile; presentation changes never move a trajectory.

What exists today

What it builds

  • Both games' rules and drawing over metaverse-engine/'s physics and space chapters; metaverse/'s space modules kept as independent references until the Metaverse Engine's own pass the same checks.

Acceptance checks and oracles

  • The checks listed in space.md pass against the Metaverse Engine's bodies, contacts, gravity and thrust.
  • A ball at 200 m/s never passes a wall at any substep count.
  • Belt 2200's transfers, re-propagated by chapter 40, arrive within their stated tolerance; the ephemeris error against the pinned table is reported.
  • A two-player Belt game replays from its orders to identical state hashes on both clients; an injected difference is reported at its tick.
  • belt-2200.png and Orbit League's goldens change only where a fix is visible; the 60 FPS rule holds.

Dependencies

Chapters 1–22, 39–42, 44, 46, 48, 49 and 50.