orbit/dev
Brian Fertig 520cba85f6 Add mining economy: rock shrink, split/shatter, and mineral hold
- Extract minerals from the latched asteroid at ratePerSec × miningSpeed; each mineral shrinks the rock by 1 px so the beam stays latched to its rim.
- Break rocks that lose ~1/3 of their original size: large ones halve in place (beam keeps mining one half), small ones shatter into pieces that fly home and load the hold.
- Add ship.minerals hold with addMinerals/setMinerals capped at stats.mineralStorage; a full hold ends the run instead of grinding the rock away.
- Persist the hold in save/restore (captureState writes ship.minerals, applyRestore restores it) and keep legacy saves working when the field is absent.
- Play new mining_split sfx on each break and surface split/absorbed/storageFull events as console toasts.
- Expose AsteroidCluster rock surgery (setSize/addRock/removeMember) for runtime splits, and add headless Phaser stub + loader plus a mining test suite covering extraction, halving, shattering, full-hold stop, and the hold API.
2026-09-05 11:18:35 -06:00
..
asteroids.test.mjs
…
cdp-eval.mjs
…
cdp-firefox.mjs
…
cdpshot.mjs
…
clickout-test.html
…
clickout-test.mjs
…
comms-click.html
…
comms-click.mjs
…
comms-shot.html
…
comms-shot.mjs
…
decode.test.mjs
…
discovery.test.mjs
…
galaxy.test.mjs
…
landing-click.html Add SurfaceScene with landing video and surface deck 2026-09-04 21:25:44 -06:00
landing-click.mjs Add SurfaceScene with landing video and surface deck 2026-09-04 21:25:44 -06:00
mining-test.html
…
mining-test.mjs
…
mining.test.mjs Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
music.test.mjs Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
phaser-loader.mjs Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
phaser-stub.mjs Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
planet.test.mjs
…
popup-shot.html
…
popup-shot.mjs
…
reputation.test.mjs
…
research-builds.test.mjs Add deep-scan sonar pulse replacing the Build action button 2026-09-05 00:29:17 -06:00
saves-ui-test.html
…
saves-ui-test.mjs
…
saves.test.mjs Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
scan-test.html Add deep-scan sonar pulse replacing the Build action button 2026-09-05 00:29:17 -06:00
scan-test.mjs Add deep-scan sonar pulse replacing the Build action button 2026-09-05 00:29:17 -06:00
scan.test.mjs Add deep-scan sonar pulse replacing the Build action button 2026-09-05 00:29:17 -06:00
sfx.test.mjs Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
ship-behavior.test.mjs Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
shot-firefox.mjs Add SurfaceScene with landing video and surface deck 2026-09-04 21:25:44 -06:00
signal-compass-flow.html Add signal compass UI for scan-revealed undiscovered objects 2026-09-05 00:29:49 -06:00
signal-compass-flow.mjs Add signal compass UI for scan-revealed undiscovered objects 2026-09-05 00:29:49 -06:00
signal-compass.test.mjs Add signal compass UI for scan-revealed undiscovered objects 2026-09-05 00:29:49 -06:00
smoke-game.mjs
…
starfield.test.mjs
…
surface-flow.mjs Add take-off clip to surface scene before resuming flight 2026-09-04 22:44:51 -06:00
surface-hud-shot.html Add upper-left surface HUD showing planet name, type, and tether level 2026-09-04 23:23:41 -06:00
surface-hud-shot.mjs Add upper-left surface HUD showing planet name, type, and tether level 2026-09-04 23:23:41 -06:00
surface-hud.html Add upper-left surface HUD showing planet name, type, and tether level 2026-09-04 23:23:41 -06:00
surface-hud.mjs Add upper-left surface HUD showing planet name, type, and tether level 2026-09-04 23:23:41 -06:00
surface-shot.html Add SurfaceScene with landing video and surface deck 2026-09-04 21:25:44 -06:00
surface-shot.mjs Add take-off clip to surface scene before resuming flight 2026-09-04 22:44:51 -06:00
surface-test.html Add SurfaceScene with landing video and surface deck 2026-09-04 21:25:44 -06:00
system-hud.test.mjs Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
test-game.html
…
tether.test.mjs
…
wdshot.mjs
…
zorder-test.html
…
zorder-test.mjs
…