orbit/dev
Brian Fertig 9ca0fa55a8 Add music system, UI SFX, and ship base stats
- New shared audio voices: js/utils/Sfx.js (playSfxOn/stopSfxOn/sfxPlayingOn)
  and js/utils/Music.js (loop voice + shuffle playlist), both with v4 guard
  rails (cache.audio.has, stopByKey, isPlaying) so missing assets never throw.
- data/music.json: menu loop, shuffled deep-space soundtrack for GameScene,
  and per-world surface loops keyed by planets.png frame; new mp3 assets in
  assets/music/.
- data/sfx.json: add ui_hover/ui_click/ui_window/ui_close/mining_loop and a
  dedicated scan track; wire UI components (buttons, panels, popups, save
  vault) to the shared voice via scene.playSfx seam.
- GameScene: start/stop the shuffle on create/shutdown, stop both soundtrack
  and mining hum on 'sleep' (landing launch+sleep) and resume on 'wake';
  mining hum loops while beam is live and stops quietly on 'stopped'.
- SurfaceScene: preload and loop the world's track from landing through
  takeoff; fix landing frame hand-off to pass sheetFrame instead of the
  texture Frame object.
- MenuScene: preload SFX + menu music, start the menu hum in create, stop it
  on the 'shutdown' event (v4 never calls shutdown() on transition).
- data/ship.json → stats: hullIntegrity/shields/cargoHold/mineralStorage,
  exposed as ship.stats for future combat/trading/mining systems.
- Tests: dev/sfx.test.mjs and dev/music.test.mjs cover the shared voices,
  guards, and data contracts; ship-behavior and system-hud tests extended
  for base stats and the mining hum lifecycle.
2026-09-05 10:10:18 -06:00
..
asteroids.test.mjs
cdp-eval.mjs
cdp-firefox.mjs
cdpshot.mjs
clickout-test.html
clickout-test.mjs
comms-click.html Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
comms-click.mjs Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
comms-shot.html Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
comms-shot.mjs Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
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 Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
mining-test.mjs Add ship state machine and let movement break the mining sequence 2026-09-04 18:06:33 -06:00
music.test.mjs Add music system, UI SFX, and ship base stats 2026-09-05 10:10:18 -06:00
planet.test.mjs
popup-shot.html Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
popup-shot.mjs Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
reputation.test.mjs Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
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
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 Add comms panel and free-space station entities 2026-09-04 19:45:12 -06:00
zorder-test.html
zorder-test.mjs