|
Some checks failed
Build / build (push) Failing after 19s
Implemented automatic resource replenishment when the ship is inside the base landing zone. **Modified: src/starBase.ts** - Added StarBaseResult interface with baseMesh and landingAggregate properties - Changed buildStarBase() return type from AbstractMesh to StarBaseResult - Now returns both the base mesh and landing aggregate for resupply system access - Landing aggregate already configured as trigger for collision detection **Modified: src/levelDeserializer.ts** - Added PhysicsAggregate import - Updated deserialize() return type to include landingAggregate field - Changed createStartBase() to return full StarBaseResult - Updated return statement to destructure baseResult into baseMesh and landingAggregate **Modified: src/level1.ts** - Added PhysicsAggregate import and _landingAggregate property - Stored landingAggregate from deserializer result - Called ship.setLandingZone() to configure resupply system **Modified: src/ship.ts** - Added resupply system properties: _landingAggregate, _resupplyTimer, _isInLandingZone - Added setLandingZone() method to configure landing zone for resupply - Added updateResupply() method called every physics update (6 times per second) - Distance-based detection: checks if ship is within 20 units of landing zone center - Resupply rate: 0.1 per second for all resources (fuel, hull, ammo) - Automatically replenishes until resources reach 1.0 maximum - Debug logging for enter/exit landing zone events Resupply System Mechanics: - Activates when ship is within landing zone (distance < 20 units) - Replenishes at 0.1 per second (~0.01666 per update at 6 updates/second) - Repairs all three resources simultaneously: fuel, hull, ammo - Stops automatically when each resource reaches maximum (1.0) - Integrated with existing ShipStatus observable system for automatic gauge updates 🤖 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 | ||