About Shape-Shift Racer
Shape-Shift Racer by Sarthak is an indie retro-futuristic arcade racer created with pure client-side web technologies. Combining the vibrant aesthetic of 1980s synthwave with modern browser capabilities, the game challenges players to navigate endless neon highways, morph between vehicle forms at blazing speeds, dodge barricades, and build massive streak multipliers.
Core Game Mechanics
Real-Time Vehicle Morphing Engine
Unlike traditional racing games where vehicle dimensions remain static, Shape-Shift Racer requires dynamic shape-shifting to survive highway hazards:
- CRUISER (Normal): 84 × 50 px balanced sports GT coupe for standard road cruising and navigating lateral lane shifts.
- LOW-RIDER (Flat): 136 × 22 px ultra-low aerodynamic supercar designed to slide beneath laser low beams (30 px clearance gap).
- SLIM-BLADE (Narrow): 32 × 100 px razor-thin concept racer engineered to thread through narrow twin pillar gates (48 px gap width).
Dynamic Biomes & Speed Scaling
The race progresses across four atmospheric visual biomes transitioning smoothly every 500 meters:
- Sunset Drive: Golden horizon, deep magenta skies, and violet asphalt curbs.
- Cyber Night: Deep cobalt grid, electric cyan lighting, and neon signposts.
- Neon Tokyo: Glowing emerald highway with vibrant hot-pink accents.
- Plasma Storm: Fiery crimson storm skies, molten amber glow, and maximum velocity.
Speed scales dynamically from an initial cruise speed of 420 km/h up to a supersonic 920 km/h, challenging your reflexes and morph timings as your streak grows from 1x to 5x.
Technical Architecture
Shape-Shift Racer is built with strict performance and privacy principles:
- Pure Canvas 2D Pseudo-3D Projection: The 3D road rendering is generated using mathematical perspective projection (p = raw_p^2.2) with dynamic sinusoidal curvature and segment shading, achieving a locked 60 FPS without external 3D engine overhead.
- Procedural Web Audio Engine: All sound effects (morphing chimes, obstacle clears, coin sparkles, crash impacts) and the 120 BPM synthwave musical soundtrack loop are synthesized procedurally in Web Audio Float32Array PCM buffers on startup, requiring zero external audio file downloads.
- On-Device Facial AI Inference: Powered by Google MediaPipe Tasks Vision WebAssembly, webcam inference runs asynchronously at 20–30 Hz decoupled from the 60 FPS rendering loop. Adaptive One-Euro filtering, deadzone compensation, and expression hysteresis deliver responsive, jitter-free facial steering and morphing.
- 100% Privacy-First Processing: All webcam video frames are processed exclusively in client-side RAM inside WebAssembly memory. Video data is never recorded, never saved to disk, and never transmitted over any network.
Open-Source Attributions & Apache License 2.0 Notice
Shape-Shift Racer incorporates the Google MediaPipe Tasks Vision framework for optional facial landmark detection. In compliance with the Apache License, Version 2.0, the attribution notice is provided below:
Copyright 2023 The MediaPipe Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
The complete license file is also self-hosted and available at ./mediapipe/LICENSE.
Creator & Inquiries
Shape-Shift Racer was conceived, designed, and developed by Sarthak. For feedback, feature requests, or technical bug reports, please visit the Contact page or email shapeshifttracer@gmail.com.