Go to file
Michael Mainguy 56488edd0b
Some checks failed
Build / build (push) Failing after 19s
Fix scoreboard, improve asteroid distribution, and eliminate code duplication
- Fix scoreboard remaining count initialization
  - Add setRemainingCount() method to Scoreboard class
  - Initialize count once with total asteroids in Level1
  - Remove incorrect per-asteroid notifications from deserializer

- Distribute asteroids evenly around base in circular pattern
  - Calculate positions using angle: (i / total) * 2π
  - Add small random variation (±0.15 radians) for natural spacing
  - Set tangential velocities for orbital motion
  - Apply to both LevelGenerator and CustomLevelGenerator

- Eliminate code duplication in level generation
  - Convert LevelGenerator static constants to public instance properties
  - Remove ~130 lines of duplicated code from CustomLevelGenerator
  - CustomLevelGenerator now just inherits from base class
  - Net reduction: 99 lines of code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 08:44:55 -05:00
.github/workflows increased heap space. 2025-10-28 12:01:29 -05:00
public Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
server Initial Commit 2025-02-15 11:19:24 -06:00
src Fix scoreboard, improve asteroid distribution, and eliminate code duplication 2025-10-29 08:44:55 -05:00
.gitignore Initial Commit 2025-02-15 11:19:24 -06:00
CLAUDE.md Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
index.html Add JSON-based level editor with localStorage persistence 2025-10-29 08:24:55 -05:00
package-lock.json Optimize WebXR performance and add procedural planet generation 2025-10-28 11:50:18 -05:00
package.json Add difficulty levels and upgrade BabylonJS 2025-10-17 09:05:18 -05:00
styles.css Add difficulty levels and upgrade BabylonJS 2025-10-17 09:05:18 -05:00
tsconfig.json Initial Commit 2025-02-15 11:19:24 -06:00
vite.config.ts Add difficulty levels and upgrade BabylonJS 2025-10-17 09:05:18 -05:00