World Explorer: objects in space
Every kind of thing a world holds, and why it is there. Every object should have a purpose for the player: something to do with it, or something it does to you. The ones the code gives no purpose yet are listed at the end.
"Solid" follows principles.md: a solid thing stops shots and ships. "Modes" is arcade, campaign or both.
The world's frame
Station (the main base)
- The central point of the world, one per world: you dock there, repair, buy, sell at the exchange, take and collect contracts. Most movement in a world starts and ends there.
- In the campaign the space round it is a shelter (see principles.md); docking repairs and saves. In the arcade it is the depot (R), shielded while raiders are near.
- Not solid: ships fly over its drawing. Cannot be damaged.
- Both modes, every world. Where:
station,station_size,station_shelterinsrc/js/worlds.js;dock_stationinsrc/js/station.js;src/js/docking.js;src/js/depot_shield.js.
World gates
- Gates to another world: R beside one jumps there once your ship meets the
destination's needs (weapons, defence, radiation;
allowed_world). Each world has two or three (world.links). A gate faces the world it leads to, as the galaxy chart draws it, well away from the station (placement.md). - Not solid, cannot be damaged.
- Campaign only: the arcade moves on to the next world from the depot, so it draws no gates.
- Where:
world_gatesinvisual_base_generate_map,src/js/campaign.js;interactinsrc/js/navigation.js; the jump insrc/js/teleport.js.
Portals (local gates)
- Cross big distances fast: a pair of gates, A1 and A2, in one world; fly into one and you leave the other. Both ends stand far apart, never by the station, and a pair that cannot keep the rules of placement.md is left out; the arcade's small maps keep six portals. The guide's route uses them, and raiders take them too.
- Not solid, cannot be damaged.
- Both modes. Where:
configure_expedition_portalsinsrc/js/expedition.js;update_player_navigationinsrc/js/map.js;enemy_waypoint.
Beacons
- Three per world: the places of scan stages (the survey robot scans beside one), survey contracts, and the defend relay.
- Not solid, cannot be damaged.
- Campaign only; the arcade draws none.
- Where:
beaconsinsrc/js/campaign.js;operation_pointinsrc/js/operations.js;src/js/survey.js.
Race rings and the start line
- A ring race's course: a start line with a place for each racer and three lights, and numbered gold rings to fly through in order, the next one lit, the passed ones faded, the last chequered (the finish).
- Background: ships and shots pass through them. Campaign, while a race
contract waits in the world, and the Races mode. Where:
src/js/race.js; placement.md.
Combat zone
- The point where elite, boss and recover stages happen; the flagship of a boss stage waits there.
- Not drawn unless a contract uses it. Campaign.
- Where:
combat_zoneinsrc/js/campaign.js;src/js/navigation.js.
Rock and debris
Ore rocks (asteroids in mining fields)
- What ore is mined from. Twelve fields of nine rocks per world; every third field is rich and holds the world's resource. Your guns mine them: in the campaign your shots, missiles and the pulse cut units out of a rock's reserve, straight into your hold; in the arcade they break it for salvage.
- Solid. One bar, shown once a rock is below full: what is left of it (in the campaign the share of its reserve; see principles.md).
- Broken, a rock flies apart in three or four pieces of its own drawing, which
tumble away and fade in under two seconds (Effects on; eight pieces in
flight at most, so in a chain the first rocks' pieces fly and the rest
break without). The pieces are not solid, and they are drawn with the
rocks, under every hull, shot and pickup. Where:
rock_breakinsrc/js/hull_break.js. - Both modes, every world. Where:
base_generate_mapinsrc/js/map.js;src/js/deposits.js(the reserve and its cutting),src/js/mining.js;resolve_solid_oreinsrc/js/flight.js.
Cliffs (arcade Dustfall)
- Six rock faces round the middle of the arcade's Dustfall, each leaning over a strip of ground it would fall on (its fall zone, drawn faint, warmer with raiders under it). Shoot the crack in its foot: broken, it rumbles and falls, crushing what is in the zone (raiders, and you) and leaving its rubble there as rocks; where it stood is open. Half of Dustfall's squadrons warp in under a cliff, and the guns turn to a crack with raiders under it.
- Solid; your shots damage it, a bar once hit; raiders' shots stop on it.
Arcade, Dustfall only. Where:
src/js/arcade_cliffs.js; numbers in balance.md.
Drifting asteroids and wrecks
- Moving obstacles: they raise the difficulty a little and add noise, so flying is more interesting. A hit costs hull; your shots break them, and the turret shoots one drifting at you when no raider is near. A broken one leaves a little salvage (2).
- Solid for you, not for raiders or their shots. Damageable, no bar.
- Shot apart, one flies apart in pieces of its own drawing, as an ore rock does.
- Both modes, every world; 64 placed per world round the station, gates,
beacons and fields. Where:
generate_drifting_debris,drifting_debris_hitinsrc/js/expedition.js.
Caches
- Salvage lying in space: 22 per world, each five artifacts and a repair kit, energy cell or repair. Taken ones stay taken in the campaign (saved per world).
- Pickups, not solid. Both modes. Where:
base_generate_mapinsrc/js/map.js;store_worldinsrc/js/campaign.js.
Pickups
- What raiders and rocks drop: artifacts (salvage), repairs (+18 hull), energy (+25 pulse), supplies (repair kit, EMP, stasis), and in the campaign cargo. The magnet module pulls them in.
- Both modes. Where:
drop_pickup,collect_pickupinsrc/js/upgrades.js;cargo_spillinsrc/js/resources.js.
Forces
Black holes
- A danger to steer round, and a tool: they pull ships in, and the core kills
a ship at once, shields or not. The lure mission uses one to destroy the
Leviathan. Four per world, six from Ion Reach, eight from Nova Forge, but
none in Haven: its small map leaves no place clear of the station and the
gates (
gravity.jsdrops a hole it cannot place). Eclipse pulls at 210%. - The arcade's Eclipse, its gravity world, has one hole, and there it bends
every shot's way, slings a ship that passes close past its cruising speed,
and pulls in raiders that close on you past it (the rest steer out of its
pull); one its core takes counts as your kill (
src/js/arcade_gravity.js). - Not solid; not damageable. Both modes. Where:
base_generate_mapandfatal_gravityinsrc/js/map.js;src/js/gravity.js;src/js/lure.js.
Storm and flare zones
- Ion Reach storms: inside an active one, pulse charges +14 a second and the shield loses 12 a second. Nova Forge solar flares: heat +15 a second and a hit of 10 every second. Both warn before they turn on; up to four per world.
- Not solid. Both modes in those two worlds. Where:
generate_environment,zone_stateinsrc/js/environment.js;src/js/flight.js.
Arc pylons and charge fields (Ion Reach)
- The world's own trick, to learn to stay clear of and to dare. An arc pylon
is a knot of charge with its reach drawn round it (230 m): a ship inside
sets it charging, a gold ring closing in and a dashed line to the ship for
1.1 s, then the bolt strikes what is still inside for 18, the shield first
(play log cause
lightning); a ship that got clear sees it strike the empty rim. It rests 2.4 s, then charges again. A charge field (violet, 170 m) fills the pulse 12 a second while you are in it. Two pylons of three have a field beside them, most of it inside the pylon's ring; a few lie alone. - Not solid; not damageable; drawn as light. Raiders are neither struck nor
charged. Both modes, Ion Reach only (8 pylons round the campaign's station,
6 round the arcade's depot or along its Scroll lane), none in the Races
mode. Where:
src/js/ion_pylons.js; numbers in balance.md.
Magnetic spires (Obsidian)
- The world's own trick: cover that both sides use. A spire is a needle of dark glass (40 m) with its field drawn round it (280 m), lines of force running in. Inside the field it draws ships in (30 m/s at its foot, nothing at the rim; yours unless you hold B, raiders too, a flagship aside) and bends every shot toward itself, yours and the raiders': one passing within about 70 m curves into the spire and stops there, one passing 100 to 160 m off is turned aside 50 to 100°. So a spire between you and a raider's guns covers you, and a raider behind one is covered from yours. A flagship's and a marksman's shots keep to the line their tell showed, and still stop on it.
- Solid: ships crash into it as into a rock (above 110 m/s it costs hull, up
to 24, play log cause
rock), raiders steer round it, drifting debris glances off it. Not damageable, no bar. Both modes, Obsidian only (7 round the campaign's station, 6 round the arcade's depot, 8 along its Scroll lane), none in the Races mode. Where:src/js/obsidian_spires.js; numbers in balance.md.
Currents and planetary pull
- Verdant's currents carry ships, raiders and pickups; Obsidian's planet pulls ships within 2.1 km, less for hulls with more traction.
- Where:
world_flowinsrc/js/environment.js;src/js/flight.js.
Radiation
- A field over the whole of Ion Reach, Obsidian, Nova Forge and Eclipse that wears down the ship's radiation shield and then the hull, unless the lining is good enough. Arcade radiation is 35% of the campaign's.
- Where:
expedition.radiationin the world files;src/js/expedition.js.
Ships
Raiders
- The world's faction: they attack you and the freighters you escort. Five types (chaser, tank, shooter, splitter, lancer) plus a splitter's shards; numbers in balance.md.
- In the arcade some are marksmen: they aim where you will be, and a dashed red line from them shows that aim for the half second before they fire.
- In the arcade five more kinds have a job each (an interceptor bursting
faster than you cruise, a bulwark with a front shield, a carrier launching
drones, a sniper with a charging red line, a mine-layer sealing a lane),
and a squadron hunts as a pack: a cut-off, flanks, the rest from behind,
and a ring round a ship that holds still. Where:
src/js/arcade_raiders.js,src/js/arcade_pack.js. - Solid, damageable, a bar once hit, a shield ring. Both modes.
- Where:
src/js/combat.js,spawn_enemyinsrc/js/campaign.js,src/js/navigation.js,src/js/update.js.
Elites and flagships
- Tougher raiders to hunt: elites lead arcade squadrons and are the targets of elite stages; a flagship ends each arcade world and each boss stage.
- Solid, damageable; a flagship's bar is at the top of the screen. Both modes.
- Where:
src/js/arcade.js;spawn_operation_enemyinsrc/js/operations.js.
The Leviathan
- The lure mission's beast: guns cannot hurt it; lead it into a black hole.
- Solid, not damageable by shots. Campaign, Verdant (Haven has no black
hole). Where:
src/js/lure.js.
A ring race's rivals
- The ships you race in a ring race: three or four, each a name, a hull and a colour; they fly the course's rings by a ship's rules, bump, and turbo, an engine's flame behind each in its colour, long on its turbo.
- Solid; raiders' shots and rams damage them (a bar once hit), your shots
pass through, and they never shoot. Campaign and the Races mode. Where:
src/js/race.js.
World guards
- Each world's guard wing (campaign only): 2 ships in Haven and Verdant, 3 in Dustfall, Ion Reach and Obsidian, 4 in Cryosphere, Nova Forge and Eclipse, named as the world's guards (the Anchorage Patrol, the Canopy Wardens...). Each wears the world's colour, a shield mark over it, and the wing's name under the one who leads; on the map, a shield in the world's colour.
- They patrol a loop out of the station through the gates and the beacons (within 8 km of the station: in the wide worlds, Eclipse 240 by 180 km, a point on the way to a farther one), the others in their places behind the one who leads, and turn to fight any raider within 950 m of the wing or of you (not a flagship, a commander or the Leviathan: those are the contracts' own). In a fight they hold on the raider's flanks, square to your line of fire, and fire bolts that lead it; a raider they destroy counts as yours. Raiders fight them back: a raider nearer to a guard than to you within 650 m takes it for its prey, and its bolts and missiles stop on it.
- By your reputation in the world (goals.md): a Trusted pilot within 2.6 km of the station flies with the wing behind; a Suspect one, or one with sealed cargo aboard, may be stopped for a scan (goals.md); a Wanted one is attacked on sight within 1.4 km.
- Your guns aim at raiders, and their shots pass over the guards as over every friendly hull. A shot you aim yourself (the turrets follow the pointer) stops on a guard and hurts it: a stray bolt is forgiven ("watch your fire"); more than five hits at once, each forgotten in two seconds, is fire on the guards (−2 reputation, the wing on you for 25 s); a guard destroyed is −5 and 45 s. A wing that fights you (Wanted, or fired on) is your guns' target too, and all your shots hit it. A raider you destroy while it fights them is +1, once in 90 s.
- Solid (no hull overlaps them), damageable, a bar once hurt; a shield that mends after 5 s with no hit. A guard lost comes back from the station 75 s later. Strength follows the world at the story's front: a hull of 450 × the raiders' hit scale, twice the raiders' shield.
- Where:
src/js/guards.js; the hooks insrc/js/update.js,src/js/bodies.jsandsrc/js/missiles.js.
The convoy's freighter
- What escort stages protect: it loads at a mining field and unloads at the station; raiders strike at the stops. G flies you in formation behind it.
- Solid; raiders damage it (300 hull in Haven at level 1, growing as the raiders' hits do farther out and at higher levels; shown as a label). Campaign.
- Where:
update_escortinsrc/js/operations.js;src/js/formation.js.
Drones
- Orbit drones (a module) circle you and shoot. The survey robot scans at a beacon while you guard it (80 hull in Haven, more where raiders hit harder; a bar).
- The robot: campaign. Orbit drones: both.
- Where:
src/js/survey.js,src/js/render.js(orbit drones).
Background
Planets and moons
- Each world has its planet ("PRIME") and an outer moon, drawn in the sky. Obsidian's planet pulls ships (above); elsewhere they are scenery.
- Background, not solid. Where:
generate_environmentinsrc/js/environment.js;src/js/world_visuals.js.
Scenery rocks and wrecks
- 260 + 8 × the world's
wavedim shapes behind the world; ships and shots pass through. - Where:
base_generate_mapinsrc/js/map.js;render_mapinsrc/js/surfaces.js.
Satellites
- In Haven only (the one world with satellite drawings), every fourth scenery item is a satellite, faded and turning slowly.
- Where:
render_mapinsrc/js/surfaces.js;src/sprites/worlds/haven/satellite-*.svg.
Far scenery
- The world's scenery drawings again, far behind the plane of flight: small (20 to 51 m across at zoom 100%), faint (0.24 and 0.3) and sparse (about 14 to a 1366 × 768 window), in two depths that slide past at 0.2 and 0.45 of the world's speed and grow and shrink with the zoom. They give open space depth and tell one world from another away from its planet.
- Background, not solid; behind the planet. With Effects on only; nothing of
it moves by itself. A drawing that, small and faint, passes for a thing of
the game is left out (
sky_far_arts). - Where:
src/js/sky_far.js;src/sprites/worlds/<world>/scenery-*.svg.
No purpose yet
What the code draws or places without giving the player anything to do with it. Each has a suggestion, only a suggestion.
- Satellites (Haven): decoration only; nothing touches them and they do nothing. Suggestion: a satellite in range charts the map round it (as the map's fog of war is cleared today), so Haven teaches charting.
- Scenery rocks and wrecks: decoration only, kept dim so they never pass for solid things. Suggestion: none needed beyond depth, or let a scenery wreck hold a cache marker so the eye has a reason to look.
- Far scenery: decoration only, for depth and each world's own look. Suggestion: none needed.
- Planets and moons outside Obsidian: decoration only. Suggestion: a planet gives a slow gravity assist (a speed boost along its rim), so the sky is a route too.
- The station's drawing as a body: it is not solid, so ships fly over a 1 km structure, against the rule that what looks like an object is one. Suggestion: make the hull solid outside the docking lane.