xonecas.ioDon't click! Sean Caetano Martin Sign in
space-browser / GAME_DESIGN.md 148 lines15.0 kB RenderedSource Raw

Space Browser: The Game — Game Design

A ruthless browser mini-MMO of survival, physical ship-building, and deep-space exploration. Each browser tab is an independent player in a shared, living galaxy covered by a collective fog of war. Players mine ore, scavenge wrecks, assemble modular ships directly in space, fight automated battles through positioning, and push outward from the protected galactic core toward the dangerous, sparse outer rim.

Scope rule. This document describes exactly one loop: scavenge → tow → craft → fight → go farther → die, and leave your wreck behind. Every mechanic below either feeds that loop or creates the risk that interrupts it. Anything else is out (see Out of Scope at the end).


Lessons from Iterations 1 & 2

  1. Resolution vs. Zoom Scale: Both previous iterations used a fixed monospace character grid while trying to zoom continuously from ship scale to full galaxy scale in one scene. At close zoom, ships had enough character cells for silhouette; zooming out collapsed ships, planets, and POIs into 1–2 flickering character cells, turning everything into indistinguishable smudges. Fix: Split the game into two dedicated scenes (Local Space and Galaxy Map) and shrink the overall scale so local space always renders with rich character definition.
  2. Static Orbits: Both iterations generated orbital radii and angles for planets and POIs, but never advanced them over time. Nothing revolved around stars, and "orbiting" a POI simply stopped the ship at a standoff distance. Fix: All planets actively revolve around their stars, and orbiting a POI anchors the player to its moving trajectory.
  3. Passive Combat & Blind Ranges: Iteration 1 required manual targeting and suffered from shot tunneling; Iteration 2 used unavoidable homing projectiles that damaged random pieces, while NPCs were single static ships that stopped at max range. Neither showed weapon ranges. Fix: Visible weapon range rings (yours and the enemy's), roaming multi-ship Rogue AI packs, Galaxy Security patrols, and directional positioning combat in which damaged pieces can be lost permanently.
  4. Ship Movement Feel: Iteration 1 used per-piece spring physics that made ships lag and snake awkwardly on turns; Iteration 2 used a whole-hull velocity offset that made the ship wobble away from its true center. Fix: Ships fly as a rigid, responsive cluster — rotation and steering are immediate and predictable, and a ship only stops being one piece when the graph is actually severed.
  5. Web UI Crutches: Both iterations leaned on DOM cargo slots, right-click dropdown menus, and SVG modals (ship editor) instead of solving interactions in the game world. Every one of those panels was a place where the game stopped being a game. Fix: Eliminate cargo slots and editor modals; ore is physically towed in space and ship pieces are dragged directly onto or off the hull.
  6. Farming Instead of Risk: Both iterations were balanced as farming games with occasional risk: enemies were thin, avoidable, and unrewarding. Fix: Combat is the only source of ship pieces, hostile density rises outward, and Deep Space travel is the one moment you cannot shoot back.

Visuals & Two-Scene Architecture

ASCII Cel-Rendered Aesthetic

Inspired by the amber/sepia monospace terminal animation of xonecas.io. The world is rendered top-down and quantized into a character/cel grid where luminance and coverage select glyphs from a character ramp in an amber, sepia, and gold palette.

Scene 1: Local Space View

  • Locked to tactical ship-to-system scale so ships, pieces, projectiles, towed ore, and celestial bodies always span enough character cells to have crisp silhouettes and shading.
  • Displays the player's ship, nearby ships, physical cargo/pieces, orbital paths, and combat range rings.

Scene 2: Galaxy Map View

  • A dedicated strategic scene for viewing the spiral galaxy, shared fog of war, discovered star systems, other players, and plotting deep-space routes.
  • Every living player is drawn as a dot on the galaxy, so you can see where the population is, who is pushing outward, and which systems are worth flying to. This is the primary way players find each other.
  • Player dots are visible even in unexplored space: the fog hides systems, not people. A dot tells you someone is out there, not what is around them.
  • Freed from rendering individual ship hulls at the same scale as spiral arms, allowing the galaxy to look and animate like the xonecas.io reference.

Zero Web UI Overlays for Gameplay

  • All spatial and inventory interactions happen directly on the canvas (clicking, dragging, towing).
  • The HUD is stripped to essentials that have no physical body: callsign/location readout, fuel bar, radio chat log/input, and the ? help overlay.

RTS Camera controls

  • Panning.
  • Some zoom (not the massive zoom of the experimentations).
  • Snap to centered on ship.

A Smaller, Living Galaxy

  • Shared Seed & Collective Fog of War: One deterministic galaxy shared by all players. Only the central spawn systems start revealed. Exploring new space permanently lifts the fog of war for all players. First discoverers can name unnamed stars and planets while orbiting them.
  • Smaller Scale: System sizes and inter-system gaps are compact enough that traversal is brisk, encounters are frequent, and stars and planets feel present rather than lost in empty void.
  • Active Orbital Motion: Stars sit at system centers; planets continuously revolve around their stars along visible orbital paths.
  • Orbit Anchoring: Clicking a POI to orbit moves the ship into its orbit ring and anchors the ship to the POI's orbital motion. While orbiting a moving planet, the player travels with it around the star.
  • One Pressure Gradient: The galactic core is dense, protected, and shipyard-rich; the rim is sparse, hostile, and shipyard-poor. Distance from the center is the single difficulty dial for hostiles, shipyards, and the value of what you can bring home.

Points of Interest & Factions

Every POI has a clear gameplay function. Nothing decorative.

  • Stars: Deadly cosmic hazards at the heart of each system. A piece that overlaps a star burns, losing hit points every second it stays in the heat, so a glancing pass costs armour and a careless one costs the pieces that went in.
  • Planets: Orbit stars. Every planet is one of two kinds.
    • Shipyard Planets: Provide refuelling, crafting, upgrading, and repairing. Common in the central spawn systems and increasingly rare toward the galaxy edges in a smooth progression.
    • Barren Planets: The ore bodies of the galaxy. While anchored in orbit around a barren planet, the player automatically pulls physical ore out of it at a steady rate per second (no "collect ore" menu clicks). Each planet holds a finite amount and regrows it over time, so a single planet cannot be farmed forever — plenty is what makes you move.
  • Wrecks: Physical clusters of severed or destroyed ship pieces and loose ore drifting in space, left behind by defeated ships and dead players. Wrecks are the only source of new ship pieces.
  • Rogue AI (Hostile): Roaming groups of ships that patrol their system and hunt anything that enters it. Common and weak (small ships, small groups) near the center of the galaxy; larger ships in much greater numbers toward the outer edges. They do not leave their system.
  • Galaxy Security (Friendly NPCs): Friendly patrol ships that guard spawn systems and Planets with Shipyards, and hunt anyone who attacks within their system. They use the exact same ship piece system, stats, and combat rules as players and Rogue AI — systemic protection instead of artificial invulnerability zones.

Ships, Pieces & Physical Cargo

Free-Form Ship Graph

A ship is a connected graph of geometric pieces rooted at the player's starting piece.

  • Direct In-Space Dragging: No cargo-to-hull menus or SVG editors. Players pick up loose ship pieces in space by dragging them directly onto their own ship cluster to attach, or drag pieces off their own ship to detach them.
  • Rigid Flight: The attached graph moves and turns as one unified body. Nothing lags, snakes, or wobbles. The ship is only ever pulled apart by damage.
  • Severing: Each piece has its own hit points and takes hits from the direction they come. If a piece is destroyed and severs the graph, any cluster no longer connected to the root piece breaks off into space as drifting wreck pieces.

The 4 Ship Pieces

Pentagons are removed. Ships are built from four distinct shapes (upgradeable up to 3 stars at Shipyard Planets):

  1. Triangle (Gun): Automatically fires projectiles at valid targets within attack range.
  2. Square (Defense): High hit points (armor). A Square absorbs the fire aimed at its own side of the hull, so placing it between the incoming fire and the fragile pieces behind it is the entire defensive skill. It does not reduce damage ship-wide.
  3. Circle (Cargo Tow): No magic inventory pocket. A hull tows 3 ores with no Circle at all, and each Circle adds 3 more, so the line holds 3 + 3 × (number of Circles) ores.
  4. Star (Deep Space Engine): The only piece that raises fuel capacity. Ultra-rare and late-game, craftable only at rare Shipyard Planets on the outer edges of the galaxy — it is the only way to cross the largest outer-rim gaps, and therefore the goal of every long run.

There is no ship size cap. A bigger ship hits harder and survives more, and is a bigger, easier target. That is the only balance.

Physical Towing

  • Towing Ore: Flying close to loose ore hooks it onto the line by itself — no click and nothing to decide. The line trails straight behind the ship in the order the ore was hooked, up to the 3 + 3 × Circles limit; a full ship simply flies past the rest.
  • No Hidden Storage: Ships tow a few ores and nothing more, so ore is spent at the yard or lost with the ship. Any ore you leave behind is ore someone else can take.
  • Ore Only Changes Hands by Killing: No trading, no handovers, no escrow, no menus. The only way to get another player's ore is to destroy their hull: when a ship dies, its line goes slack and the ore lies in space next to its wreck for whoever is still flying.

Automated Combat & Range Rings

Combat is frequent, automated, and controlled purely through movement and positioning.

  • Auto-Shooting: Triangles fire automatically at the nearest hostile within weapons range. Left click to target, no target list, and no firing button: which enemy piece you hit is decided by where you click.
  • Visible Weapon Ranges:
    • The player's own attack range ring is clearly drawn in space around their ship.
    • Enemy weapon range rings are clearly drawn when approaching or engaging hostiles, so the player always sees the exact line between safety and danger.
  • Movement as Control: Because firing is automatic and projectiles hit physical pieces on the hull, combat skill comes from kiting, maintaining optimal range, using orbital motion, and rotating the ship so Square armor pieces absorb fire before Triangle guns or the root piece are severed. Leaving range is the only way to break off a fight.
  • Players Are Not Special: The same rules apply to other players. Every piece lost or gained in a fight stays lost or gained.
  • What Combat Pays: Ship pieces come only from wrecks. Ore comes from barren planets and from the loose ore left in wrecks. You can survive by mining, but everything you fly comes from fights you won.

Deep Space Travel & Fuel

  • Fuel Economy: Fuel is spent per unit of distance flown, so a ship that is stopped or settled in orbit spends nothing. Orbiting a Shipyard Planet refills the tank for free. Fuel capacity only grows with Star pieces, so range is a late-game achievement, not a given.
  • Out Of Fuel Is Death: A dry tank ends the run on the spot, leaving the hull and its tow line in space as a wreck like any other death. There is no rescue mechanic, no tow service and no self-destruct order; going out too far with a small tank is a real death.
  • Deep Space Travel Mode: Returning to known shipyards or crossing between systems manually at normal speed is dull. Players open the Galaxy Map Scene to plot a multi-point route and engage Deep Space Mode:
    • The ship travels significantly faster and burns much less fuel.
    • Trade-off: Weapons do not fire in Deep Space Mode and the hull takes damage without maneuvering to dodge it. Rogue AI cannot follow you, but crossing a system with hostiles in it means being shot at, unable to answer, until you drop out of Deep Space Mode and fight. Routes that pass near stars carry the same risk.
    • Because Rogue AI stays in its system and you cannot shoot while traveling, deep space is a decision about which systems you are willing to cross — the risk is your route, not a dice roll.

Radio and the multiplayer aspect

  • Galaxy-Wide Radio: One radio channel, no antennas, no relay towers, no range limits. With a small playerbase, reach is not a mechanic — chatter is. Radio is where players meet.
  • Chatter Is Content: The radio carries discoveries, namings, deaths, kills against Rogue AI, and exploration milestones, so it feels active as players play along.
  • Click To Find: Clicking a message centers the view on the player who sent it, so a radio conversation can become an encounter.

Core Loop & Permadeath

  1. Deploy: Enter a unique callsign, pick a starting Tier 1 piece (Triangle, Square, or Circle), and spawn in orbit of a Galaxy Security-protected core planet.
  2. Harvest & Scavenge: Orbit barren planets to pull out physical ore per second, or hunt Rogue AI in and near the core and salvage their wrecks for ship pieces and loose ore.
  3. Tow & Build: Tow ore (3 + 3 × Circles) to a Shipyard Planet to craft and upgrade pieces, dragging them directly onto your ship graph.
  4. Expedition Outward: Use the Galaxy Map to plot fuel-efficient Deep Space routes into the fog of war. Fight or cross Rogue AI packs that grow as Shipyard Planets and Galaxy Security disappear.
  5. Endgame Rim: Reach the treacherous outer edges to find rare edge Shipyards and craft Star pieces, the only way to survive a run that keeps going.
  6. Permadeath: Run ends when the root piece reaches 0 HP, self-destructs, or disconnects past the grace window. Your ship pieces and towed cargo remain in space as a persistent wreck named after your callsign, while all map discoveries and named bodies endure for future runs. A dead run is replaced at once: the same callsign deploys again with a brand new ship in the core, and the wreck it left stays where it died.

Out of Scope

Deliberately excluded, and only worth revisiting once the loop above is proven fun:

  • Trading posts, listings, asynchronous trades, currency, colonies, NPC hailing.
  • Pentagons and storage slots, cargo-slot HUD panels, ship editor modals.
  • Comms antennas, per-tower radio logs, radio ranges, distress signals and fuel rescue.
  • Invulnerability safe zones.
  • Death-screen run statistics and leaderboards.
  • Anything that requires a menu to play the game.