I’ll polish the arcade presentation and make refueling a clearer, intentional game system rather than a hidden pickup. I’ll first inspect the existing game structure, then update the rendering, HUD, and fuel interaction while preserving the core gameplay.
The existing build already has a green traffic pickup, but it is not communicated well and there is no reliable refuel cadence. I’m going to turn it into a visible fuel-truck system with scheduled truck appearances, low-fuel signaling, refill feedback, and clearer HUD language. I’ll also add a more cohesive arcade-console frame and improve the road/car rendering without changing the core controls.
The refueling loop is now explicit: trucks appear on a schedule, arrive sooner when the reserve is low, remain identifiable at night, refill by a capped amount, and report the refill in both the game view and HUD. I’ve also finished the first visual pass. I’m building now to catch any TypeScript or CSS integration issues.
Implemented a full visual and gameplay polish pass.
Visual/UI Improvements
- Reworked the page into a cohesive arcade-console presentation.
- Added branded ENDURO header treatment, terminal rail, atmospheric background lighting, and improved framing.
- Redesigned the HUD with:
- Score display
- Day and phase indicators
- Speed readout
- Time countdown
- Quota progress bar
- High-score progress bar
- Total cars passed
- Refuel count
- Fuel truck status
- Improved fuel gauge styling with warning states, animated low-fuel feedback, and clearer instructions.
- Enhanced start, pause, and game-over overlays.
- Replaced sound emoji controls with compact
SND ON / SND OFF controls.
- Added responsive mobile-friendly HUD behavior.
Canvas Rendering Polish
- Added deeper mountain silhouettes and layered horizon scenery.
- Added road gradients, shoulder texture, roadside markers, rumble-strip details, and improved perspective cues.
- Improved vehicle sprites with outlines, shadows, wheels, windows, headlights, taillights, and fuel-truck markings.
- Added fuel-truck green beacons that remain visible at night.
- Added player-car shadows and exhaust effects during acceleration.
- Added in-game fuel status notifications such as:
GREEN TRUCK AHEAD
LOW FUEL - FIND A TRUCK
REFUELED +45
TANK FULL
- Added vignette and improved CRT styling.
Refueling System
- Fuel trucks now spawn on a reliable periodic schedule.
- Trucks appear sooner when fuel drops below the low-reserve threshold.
- Fuel trucks are visibly marked with green beacons and a white service cross.
- Intercepting a fuel truck refills up to
45% fuel.
- Refueling is capped at maximum capacity.
- Refuel events increment a visible refuel counter.
- Refuel feedback appears on the canvas and in the fuel HUD.
- Fuel trucks remain discoverable during night gameplay.
Verification
- Production build completed successfully with
npm run build.
- Updated files include
src/App.tsx, src/index.css, src/game/constants.ts, src/game/types.ts, and src/game/EnduroGame.tsx.