I'll build a side-scrolling racing game with art styles that morph every lap. Let me start by exploring the project structure.
Now I'll build the game. Starting with the art-style definitions, audio, and storage modules.
Now the core game engine with physics, world generation, and lap logic.
Now the renderer — this handles all six art styles and the post-processing effects.
Now the React UI layer — HUD, overlays, and touch controls.
Now the main App that wires the engine, renderer, input, and UI together.
Now let me add the attract-mode demo so the menu has a living animated backdrop, and fix a few engine details.
Let me optimize the terrain rendering (sample caching) and fix a few gameplay/UX details.
Now updating the game-over save flow so scores persist even without entering initials:
Let me tune the physics for better feel — air control assist, forgiving landings, and faster first lap.
Let me add a dedicated HUD accent color per style so the interface stays readable in every art style.
Now updating the HUD and touch controls to use the readable accent:
Style Shift GP is built and shipping. Here's what's in it:
The hook
An arcade side-scrolling racer where every lap repaints the entire world in a completely different art style. With a 2-second countdown and a ~7-second first lap, you hit your first full-screen style morph inside 10 seconds.
Six hand-tuned renderers, all driven by one data-driven style descriptor:
- NEON DRIFT – synthwave sun with slats, glowing wireframe hills, scanlines
- PIXEL RALLY – true 8-bit, rendered to a quarter-res buffer and upscaled with nearest-neighbour
- INK & PAPER – boiling hand-drawn lines (jitter reseeds 8×/sec), cross-hatch shading
- BLUEPRINT – dashed schematic linework over a drafting grid
- COMIC POP – fat black outlines + halftone dot overlay
- VAPOR CHROME – pastel gradients, palms, chrome glow
Core loop
OutRun-style checkpoint timer — cross the lap gate before it hits 0.0 to extend play. Gain from orbs (combo multiplier up to x9), mid-air flips, near-misses, overtakes, boost pads, and a nitro meter you charge and spend.
Physics & controls
Tangent-projected terrain physics (real launches off crests), deliberate air rotation for flips with auto-leveling when you release so casual play stays clean, plus "sketchy landing" saves instead of instant crashes. Keyboard (arrows/WASD/Space) and four large touch pads that re-theme with the current art style.
Juice
Screen shake, hit-stop slow-mo on crashes, pooled particles, expanding shockwave on lap change, speed-based camera zoom, speed lines, ground shadows, floating score popups, an animated style-name banner, and a fully synthesised WebAudio engine (RPM-linked drone, coin blips, crash noise, lap fanfare).
Structure
Start screen with attract-mode autopilot playing live behind the menu, pause, game over with initials entry, and a persistent top-10 local high-score table. Terrain samples are cached per frame and only one canvas transform pass is used per parallax layer to hold 60fps on mobile.
Files built: src/game/styles.ts, src/game/storage.ts, src/game/audio.ts, src/game/engine.ts, src/game/render.ts, src/components/Hud.tsx, src/components/TouchControls.tsx, src/components/Overlays.tsx, src/App.tsx, index.html, src/index.css