World Explorer Docs
PagesWhere things stand
Play GitHub

World Explorer: where things stand

The rules that place the station, the world gates and the portals in every world, campaign and arcade, and the things placed round them. Each rule has its reason and the number bin/map-check enforces (marked checked). A map that breaks one fails the check; the generator follows them, and a portal pair that cannot is left out rather than squeezed in.

A world's map can be edited by hand: the dev page's map editor (build/dev.html?screen=map-editor&world=3) moves, adds and deletes its things and checks these rules as it goes (src/js/dev/map_rules.js, which bin/map-check runs too); what it exports goes in src/maps/ (src/maps/README.md), and the game flies it in place of the generated map.

What R and a ring reach

Every thing you act on has a range, taken from the code:

Thing Acts when Range from its centre
Station R docks (the arcade's depot) 750 m (station_reach; hull 500 m)
World gate R jumps 155 m (gate_reach)
Portal your hull touches its ring 71 m (ring 46 m + the widest hull, 25 m)
Survey beacon it scans a ship 120 m
  • Two ranges never touch: 150 m between them at least. One key must have one meaning; a gate in the docking range left R guessing. So the station and a gate stand 1055 m apart at least, a gate and a portal 376 m, two portals 292 m. Checked.
  • R picks in a fixed order where ranges would meet: the arcade only docks; the campaign docks if the station is in reach, else jumps through the first gate in reach (list order, not the nearest), else sets a course to the station (interact, src/js/navigation.js). The rule above keeps that order from ever mattering.

The station

  • At the map's centre in the campaign, one per world. Every flight starts and ends there, so the rest is measured from it. In the arcade, where its world's shape puts it (arcade_shapes, src/js/arcade_shapes.js): each arcade world has its own size and proportions (5.4 × 5.4 km to 7.6 × 6.6 km; Verdant 9.6 × 4.4 km long), its station in the middle, at an end or on a rim, and its rock fields in a pattern of its own (strewn, a band, a ring, a belt, columns, outcrops). The rules below hold for every shape. Checked.
  • Its shelter (900 m) holds no portal, gate or fight. The space round the berths is for docking traffic. Checked through the rules below.

World gates

  • A gate faces the world it leads to, as the galaxy chart draws it (galaxy_bearing, src/js/charts.js). The gate to Verdant is up and right in Haven because Verdant is up and right on the chart; you find a gate without looking. Within 10°. Checked.
  • 60% of the way from the station to the map's edge along that bearing. A gate is a journey, not a doorstep, and still well inside the map. At least a quarter of the map's smaller side from the station (Haven: 2.5 km) and 1 km from every edge. Checked.
  • One portal beside it at most within 1 km: the one that serves it. Two rings by a gate read as clutter and hide which one goes where. Checked.
  • None in the arcade: they lead nowhere there, and the arcade draws none; nor survey beacons, which only contracts use.
  • Where: world_gates in visual_base_generate_map, src/js/campaign.js.

Portals (jump pairs)

A pair crosses a big distance: fly into one end, leave by the other.

  • The ends are far apart: 2 km, or a quarter of the map's smaller side if that is more. A jump costs a few seconds of tunnel; a shorter pair saves nothing and only crowds the map. Checked.
  • Every end 1.5 km from the station's centre (1 km beyond its hull). Near enough to reach in seconds after undocking, far enough that a ship leaving its berth never flies into a ring. Checked.
  • Two portals of different pairs stand 1 km apart. Neighbouring rings look like one place and swap your destination. Checked.
  • 300 m inside the map's edge, so the exit point (125 m in from the ring) is always in space. Checked.
  • Each end leads somewhere worth reaching:
    • three crossings for every world: corner to corner (A: 10%, 12% to 90%, 88%; B: the other diagonal) and edge to edge (C: 7% to 93% of the height);
    • in worlds 55 km wide or more, survey beacon 1 to beacon 3 (G) and a long diagonal (H);
    • the station's pairs: one end 1.5 km out toward a world gate, the other 440 m beside that gate (D, E, F); a world with two gates gives F to the first beacon that fits; Haven has only D.
  • Placed in that order, and a pair that breaks a rule is left out. The arcade has no gates, so no station's pairs: each of its worlds has crossings of its own shape instead (two, Nova Forge one), set in arcade_shapes.
  • Where: configure_expedition_portals, src/js/expedition.js.

Race courses

A ring race's course (race_course_make, src/js/race.js): a start line and 7 to 10 rings in the campaign (5 to 12 in the Races mode, by its difficulty). A ring acts on a ship within its radius (85 to 120 m); the start line on the five places along it (298 m from its middle).

  • The start line and every ring stand out of the station's shelter and 150 m beyond every range above (gate, portal, beacon), as two ranges never touch. Checked.
  • None in a gravity pull, and no leg crosses one. A racer in a pull is dragged off the line, or into the core. Checked.
  • A ship's width (50 m) clear of every rock and drifting piece, so a ring is never in a rock. Checked; while a race is on, a ring a rock drifts into moves off it.
  • No leg crosses a portal's ring or the station. A portal on the line would jump a racer away. Checked.
  • Rings and the line 150 m clear of each other, and the course turns at least 25° at every ring but the first and the last, so its line needs steering. Checked.
  • 600 m from the combat zone.

Round them

  • Survey beacons stand 1 km from every gate; a beacon that would not takes its spot mirrored across the map's centre lines. A scan on a gate would read as one place. Checked.
  • The combat zone (elite, boss and recover stages; campaign only) 1 km from every gate and portal and from the shelter's edge (1.9 km from the station), its spot or the spot mirrored. A flagship waiting on a gate blocks it. Checked.
  • No gravity well pulls inside any range above (its radius plus the range). A jump or a docking must never start in a pull. Checked; placed by place_gravity_wells, src/js/gravity.js.
  • Rocks and drifting debris leave a ship's width (50 m) round the station's hull, a gate's or a portal's ring and a beacon; the rocks of a field that would not are left out. A solid in a ring stops the ship short of it. Checked.
  • Ion Reach's arc pylons and charge fields keep their reach out of the shelter and 150 m beyond every range above, out of every pull and storm, and no race ring lies in a pylon's; two pylons' rings stand 400 m apart, so one charges at you at a time. A pylon strikes where you fly, never where you dock, jump or race to. Checked; placed by pylons_generate, src/js/ion_pylons.js (round the station, or along a Scroll lane from 1.8 km past its start to 1.2 km before its end).
  • Obsidian's magnetic spires keep their field out of the shelter and 150 m beyond every range above, out of every pull and storm; no race ring lies in a field and no race leg crosses one; two fields stand 300 m apart, and every rock leaves a ship's width round a spire's solid body. A spire pulls and covers where you fly and fight, never where you dock, jump or race. Checked; placed by spires_generate, src/js/obsidian_spires.js (round the station 2.4 to 4.4 km out, round the arcade's depot 1.4 to 3 km out, or along a Scroll lane from 1.6 km past its start to 1.2 km before its end, 120 to 260 m either side of its middle).
  • Verdant's five brood nests (arcade Free) stand 2 km from the station's centre, 600 m inside the map's edge, 500 m beyond every range above, out of every pull and storm, 150 m clear of every rock and 1.2 km apart. A fight round a nest never reaches the depot, and a ship circling one never flies into a ring or a rock. Checked; placed by brood_nests_generate, src/js/arcade_nests.js (one in each fifth of the valley east of the depot, either bank in turn, the same every visit).
  • Haven's haulers (arcade Free) fly round the harbour, not through it: 60 m from every rock's rim and 250 m outside the reach the depot's shield watches. A hauler passing never closes the depot, and its string of containers, which follows its trail, never drags through a rock. Not checked by bin/map-check: the way is found as each hauler comes in (hauler_path, src/js/arcade_haulers.js), over the rocks as they then stand; the five ways measured pass 1.76 km or more from the station.
  • Dustfall's juggernauts (arcade Free) come in 900 m from you, 200 m inside the map's edge, off the depot (100 m and its own size beyond the shield's ring), 40 m clear of every rock and out of every standing cliff's fall zone. A juggernaut never arrives inside a rock, on the depot or already under a cliff. Not checked by bin/map-check: the place is found as each comes in (juggernaut_spawn_spot, src/js/arcade_juggernauts.js), the first of sixteen bearings that fits, the last one toward the map's middle.
  • Storm and flare zones keep 200 m beyond their edge from a gate (src/js/environment.js).