Commit Graph

3 Commits

Author SHA1 Message Date
Brian Fertig 26a80b6b89 Add audio assets and integrate music/SFX handling
- Added new sound effect and music MP3 files to the project.
- Updated **BootScene** to preload all music tracks and sound effects.
- Implemented music playback:
  * MenuScene now plays looping title music and stops it on shutdown.
  * GameScene now stops any playing music on shutdown and starts level‑specific background music with fallback to the last track.
- Added SFX triggers for player shooting, alien shooting, missile launch, impacts, alien death, and player death.
- Cleaned up formatting and minor code style issues in GameScene (group/array declarations, tweens, UI text creation, level setup loops, etc.).
- Ensured proper cleanup of music objects when scenes change.
2026-02-21 12:59:46 -07:00
Brian Fertig f194886ed9 Add alien variants, homing missiles, asteroid speed scaling, CRT pipeline, and custom reticle
- New alien types (basic, spread, missile) with distinct speed, fire‑rate, explosion colors and textures.
- Implement spread‑shot pattern and homing‑missile behavior with steering logic.
- Asteroid constructor now accepts a speed multiplier; level speed increases each level.
- Extend Bullet to support homing missiles (new texture, lifetime, turn rate, steering).
- Introduce CRTPipeline post‑FX (barrel distortion, scanlines, vignette) and register it in the game config.
- Apply CRT pipeline to GameScene and MenuScene.
- Add custom reticle cursor graphics (rotating outer/inner layers).
- Update BootScene to generate textures for new alien types and reticle.
2026-02-21 10:24:03 -07:00
Brian Fertig 9a40e9a23a Add BootScene and MenuScene, update game initialization and UI
- Import and register new `BootScene` and `MenuScene` in `main.js`.
- Create `BootScene` to generate all shared textures once at startup and then start the menu.
- Implement full-featured `MenuScene` with background asteroids, wandering alien, title, controls panel, and start button (including ENTER key support).
- Remove texture generation logic and helper from `GameScene`; it now relies on textures created by `BootScene`.
- Change game‑over handling to return to the menu instead of restarting the game.
2026-02-21 08:27:35 -07:00