|
All checks were successful
Build / build (push) Successful in 1m14s
Implemented Option 5: Integrate ship physics constants into centralized GameConfig Changes to gameConfig.ts: - Added shipPhysics object with 4 tunable parameters: - maxLinearVelocity (default: 200) - maxAngularVelocity (default: 1.4) - linearForceMultiplier (default: 800) - angularForceMultiplier (default: 15) - Updated save() to persist shipPhysics to localStorage - Updated loadFromStorage() to load shipPhysics with fallback defaults - Updated reset() to restore shipPhysics defaults Changes to shipPhysics.ts: - Removed hardcoded constants - Added GameConfig import - Updated applyForces() to read values from GameConfig.getInstance().shipPhysics - Now reads physics parameters dynamically at runtime Changes to index.html: - Added Ship Physics section in Settings UI - 4 number inputs with appropriate min/max/step values - Help text explaining each parameter's effect on ship handling - Section positioned after Developer settings Changes to settingsScreen.ts: - Added input element references for ship physics controls - Updated loadSettings() to populate ship physics inputs from config - Updated saveSettings() to save ship physics values to config - Values persist across sessions via localStorage Benefits: - Ship physics now tunable in real-time via settings UI - Parameters persist across sessions - Easy to reset to defaults - Centralized configuration management - No need to edit code to adjust ship handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| themes/default | ||
| .gitignore | ||
| CLAUDE.md | ||
| CONTROLLER_THRUST.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| styles.css | ||
| tsconfig.json | ||
| vite.config.ts | ||