orbit/data
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
..
actionbar.json Add deep-scan sonar pulse replacing the Build action button 2026-09-05 00:29:17 -06:00
asteroids.json Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
builds.json
galaxy.json
game.json
landing.json Add upper-left surface HUD showing planet name, type, and tether level 2026-09-04 23:23:41 -06:00
manifest.json Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
menu.json Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
music.json Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
naming.json
planets.json Add take-off clip to surface scene before resuming flight 2026-09-04 22:44:51 -06:00
reputation.json Add reputation data layer with stable place identity 2026-09-04 18:37:44 -06:00
research.json
save.json
scan.json Add deep-scan sonar pulse replacing the Build action button 2026-09-05 00:29:17 -06:00
settlements.json
sfx.json Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
ship.json Add mining economy: rock shrink, split/shatter, and mineral hold 2026-09-05 11:18:35 -06:00
signalCompass.json Add signal compass UI for scan-revealed undiscovered objects 2026-09-05 00:29:49 -06:00
stations.json Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
systems.json
tether.json
theme.json