Sprinter - Classic Running Race Game

Seele01-Flash
By
Sprinter is a classic running race game where you compete in 100-meter sprints against increasingly challenging opponents. Master the rhythm-based controls to achieve victory in this addictive sports game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Sprinter". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Recreate the iconic minimalist style of the original Flash game but using real-time 3D. Use a **Low-Poly / Hyper-casual** aesthetic. * **Background:** Use a stark **white void** or very light gray background to mimic the original art style. * **Models:** * **Runners:** Create articulated 3D humanoid figures constructed from simple geometric primitives (capsules/boxes) to ensure performance on mobile devices. * **Color Coding:** The Player Character should be visually distinct (e.g., Bright Pink or Blue jersey) compared to the AI opponents (e.g., generic Grey or Green). * **Environment:** A simple 100-meter track consisting of thin black lines on the white ground. Include a distinct "Finish Line" tape or checkerboard pattern. * **Camera:** Implement a dynamic **side-scrolling tracking camera** (slightly elevated isometric view) that follows the player's X-position but keeps the finish line in perspective. * **Optimization:** Use `THREE.BoxGeometry` and `THREE.CapsuleGeometry` with shared materials. Avoid heavy textures; use vertex colors. Enable simple shadow maps (`castShadow`) for runners to ground them on the white floor. ### 2. Audio Requirements * **BGM:** Procedurally generate or play a **funky, upbeat retro-style loop** (reminiscent of the original "Grooviest music of all time"). It should speed up slightly as the player approaches the finish line. * **SFX:** * **Footsteps:** Rapid, rhythmic "thud" sounds that sync with the player's animation. * **Stumble:** A comedic "slip" or "wobble" sound when the player loses balance. * **Crowd:** A rising volume of white noise/cheering as the runners approach the 100m mark. * **UI:** Simple clicks for start/retry. ### 3. Gameplay Loop * **Core Mechanic - The Balance:** The player must run 100 meters. Speed is generated by input, but **stability** is the constraint. * If the player inputs rhythmically, speed increases. * If the player inputs *too* fast without rhythm (mashing), the runner loses balance (wobbles) and eventually falls face-first, causing a drastic speed loss. * **Levels:** Implement a progression system. * **Level 1:** Elementary school race (Slow opponents). * **Level 2:** High school (Medium speed). * **Level 3:** Olympics (Very fast opponents). * **Level 4:** Alien/Robot (Impossible speed). * **Win/Loss Condition:** * **Win:** Cross the finish line 1st. Advance to the next level. * **Loss:** Cross 2nd or later. Button prompt to "Retry Level". ### 4. Mobile Controls & Interaction * **Input Scheme:** Replace keyboard arrows with **Split-Screen Tapping**. * **Tap Left Side of Screen:** Moves Left Leg. * **Tap Right Side of Screen:** Moves Right Leg. * **Rhythm Mechanic:** The code must detect alternating taps (Left -> Right -> Left). * Perfect Alternation = Maximum Acceleration. * Double tapping same side or irregular timing = Stumble/Fall. * **Orientation:** Force **Landscape Mode** (or adapt camera FOV if Portrait, but Landscape is preferred for a horizontal track). * **Haptic Feedback:** Trigger `navigator.vibrate(50)` on every successful step to create a tactile running rhythm. Trigger a long vibration `navigator.vibrate(200)` if the player falls. * **UI Layout:** * Large, touch-friendly "START" button overlay. * Distance Meter (e.g., "50m") floating at the top center. * Touch zones should cover 100% of the screen height for ease of use. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Sprinter is a beloved classic running game that captures the excitement of competitive sprinting in a simple yet engaging format. Race against AI opponents in intense 100-meter dash competitions, where timing and rhythm are everything. This nostalgic sports game offers quick, fun gameplay sessions perfect for casual gaming breaks.

The game features colorful 3D graphics showing athletic runners in vibrant racing uniforms competing on a professional track. Each race becomes progressively more challenging as your opponents get faster and more skilled, keeping you on your toes throughout your athletic career.

Core Features

Fast-Paced Sprint Competition

Experience the thrill of competitive sprinting as you race against multiple opponents simultaneously. Each race is a test of speed, timing, and endurance as you strive to cross the finish line first.

Progressive Difficulty System

Start with easier opponents and work your way up to more serious competitions. As you advance through levels, the competition becomes fiercer, requiring better timing and faster reflexes to maintain your winning streak.

Rhythm-Based Gameplay

Success depends on your ability to maintain the perfect rhythm while tapping the arrow keys. Too fast and you'll stumble; too slow and you'll fall behind. Finding the optimal cadence is key to victory.

Unique Soundtrack

Each level features its own funky theme music that adds personality and energy to every race. The groovy tunes help you get into the competitive spirit and maintain your racing rhythm.

Quick Gaming Sessions

Perfect for short breaks, the entire game can be completed in just a few minutes. Each individual race lasts only seconds, making it ideal for quick entertainment.

Gameplay Mechanics

Sprinter uses simple yet challenging controls that require skill to master. Players alternate between left and right arrow keys to simulate the running motion. The key is finding the perfect rhythm - tap too quickly and your runner will stumble and lose momentum, tap too slowly and you'll fall behind the competition.

Timing is everything in this game. Watch your runner's animation and listen to the audio cues to find the optimal tapping speed. Each opponent has different capabilities, so you'll need to adapt your strategy as you progress through the levels.

Operation Guide

Basic Controls: - Left and Right Arrow Keys : Alternate rapidly to run - Mouse Click : Click on screen if keys don't respond initially - Timing : Match your key presses to your runner's stride rhythm

Pro Tips: - Find a steady rhythm rather than mashing keys frantically - Watch for stumble animations to avoid losing speed - Pay attention to the unique music in each level for rhythm cues - Practice the timing in early levels before facing tougher competition

Why Play Sprinter

Sprinter offers a perfect blend of simplicity and challenge that makes it endlessly entertaining. The game's quick pace means you can enjoy multiple races in just a few minutes, while the progressive difficulty ensures you're always facing new challenges.

The rhythm-based mechanics create a uniquely satisfying gameplay experience that's easy to learn but difficult to master. Whether you're looking for a quick gaming break or want to test your reflexes, Sprinter delivers immediate fun with its classic arcade-style competition.

The colorful graphics, energetic music, and competitive atmosphere make every race feel exciting and rewarding. It's a timeless game that captures the pure essence of athletic competition in an accessible, entertaining format.

Frequently Asked Questions (FAQ)