Go to file
Michael Mainguy 71ff46e4cf
All checks were successful
Build / build (push) Successful in 1m35s
Implement comprehensive scoring system with star ratings
Add linear-clamped scoring system that rewards speed, accuracy, fuel
efficiency, and hull integrity. Scores are always positive with a 0.5x
multiplier floor for refueling/repairs.

Scoring Components:
- Create scoreCalculator module with configurable scoring logic
- Time multiplier: Exponential decay from par time (0.1x to 3.0x)
- Accuracy multiplier: Linear 1.0x to 2.0x based on hit percentage
- Fuel efficiency: Linear with 0.5x floor (handles refueling >100%)
- Hull integrity: Linear with 0.5x floor (handles deaths/repairs >100%)
- Star rating system: 0-3 stars per category (12 stars max)

Integration:
- Add calculateFinalScore() to GameStats
- Support parTime in level config metadata
- Auto-calculate par time from difficulty level in Level1
  - Recruit: 300s, Pilot: 180s, Captain: 120s, Commander: 90s, Test: 60s
- Display comprehensive score breakdown on status screen

Status Screen Updates:
- Increase mesh size from 1.5x1.0m to 1.5x2.25m (portrait orientation)
- Increase texture from 1024x768 to 1024x1536 (fit all content)
- Add score display section with:
  - Final score in gold with thousand separators
  - Score multiplier breakdown for each category
  - Unicode star ratings (★★★) per category
  - Total stars earned (X/12)

Formula:
finalScore = 10,000 × time × accuracy × fuel × hull

All multipliers ≥ 0.5, ensuring scores are never negative even with
multiple refuels/deaths. System rewards balanced excellence across all
performance metrics.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 06:32:55 -06:00
.github/workflows increased heap space. 2025-10-28 12:01:29 -05:00
docs Add Blender export tooling and refactor asset structure 2025-11-06 12:25:34 -06:00
public Implement comprehensive scoring system with star ratings 2025-11-22 06:32:55 -06:00
scripts Implement hybrid level storage system with JSON-based defaults and configurable orbit constraints 2025-11-11 18:40:01 -06:00
src Implement comprehensive scoring system with star ratings 2025-11-22 06:32:55 -06:00
themes/default Add centralized input control management and mission brief improvements 2025-11-21 17:25:11 -06:00
.gitignore Initial Commit 2025-02-15 11:19:24 -06:00
ANALYTICS_IMPLEMENTATION.md Add analytics abstraction layer with intelligent batching 2025-11-12 16:22:28 -06:00
CLAUDE.md Refactor asteroid scaling and reorganize assets 2025-11-10 12:19:31 -06:00
CONTROLLER_THRUST.md Refactor ship controls to force-based physics with world-space transformations 2025-10-31 11:20:31 -05:00
index.html Implement Svelte-based UI architecture with component system 2025-11-21 15:01:17 -06:00
index.html.backup Implement Svelte-based UI architecture with component system 2025-11-21 15:01:17 -06:00
package-lock.json Add centralized input control management and mission brief improvements 2025-11-21 17:25:11 -06:00
package.json Add centralized input control management and mission brief improvements 2025-11-21 17:25:11 -06:00
svelte.config.js Implement Svelte-based UI architecture with component system 2025-11-21 15:01:17 -06:00
tsconfig.json Implement Svelte-based UI architecture with component system 2025-11-21 15:01:17 -06:00
vite.config.ts Implement Svelte-based UI architecture with component system 2025-11-21 15:01:17 -06:00