Bike Mania - Extreme Motorcycle Stunt Game

Seele01-Flash
By
Bike Mania is an adrenaline-pumping motorcycle stunt game that challenges players to navigate treacherous obstacle courses. Master precision control and gravity-defying stunts in this classic side-scrolling adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Bike Mania - Side Scrolling Motorcycle Trials". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D Side-Scroller. The game logic occurs on a 2D plane, but the assets are 3D. Use an **Orthographic Camera** to mimic the classic Flash game look while retaining 3D depth. * **The Bike & Rider**: Construct a low-poly dirt bike using primitive shapes (cylinders for wheels, boxes for chassis). The rider should be a simple geometric figure (sphere head with a purple helmet visor color based on the screenshot, box body) attached to the bike. * **Terrain & Obstacles**: The track should be "bumpy" and muddy. Use brown/earth tones for the ground. Procedurally generate or hardcode a track containing: * Steep ramps (triangular prisms). * Stacked crates or wooden logs (cylinders) to climb over. * Mud pits (darker texture patches). * **Background**: A bright blue skybox with fluffy white clouds (referencing the screenshot). Parallax background elements (distant hills) are a plus. * **Optimization**: Use `BoxGeometry` and `CylinderGeometry` with shared materials to reduce draw calls. Shadows should be simple or baked (e.g., a simple shadow blob under the bike) to maintain high FPS on mobile. ### 2. Audio Requirements * **BGM**: An energetic, loopable **Punk Rock or Heavy Metal** track (guitar riffs and drums) to match the "extreme sports" vibe. * **SFX**: * **Engine**: A continuous engine hum that increases in pitch (`detune`) based on the bike's velocity/RPM. * **Suspension**: A "squeak" sound when the bike lands hard. * **Crash**: A heavy "thud" and "bone crack" sound when the player fails. * **Win**: A cheering crowd sound effect. ### 3. Gameplay Loop * **Physics Core**: Implement a custom physics simulation or use a lightweight library (like Cannon.js, or simple verlet integration) focusing on **Suspension and Torque**. The wheels must have spring-like behavior connecting to the chassis. * **Objective**: Navigate from the Start point to the Checkered Flag at the end of the track without crashing. * **Fail Condition**: If the rider's head or the body of the bike (excluding wheels) touches the ground/obstacles, the bike "explodes" (parts detach), and the level resets. * **Win Condition**: Touching the finish line trigger area. * **Mechanic**: The player must balance speed (accelerate/brake) with rotation (lean forward/backward) to keep the bike upright over obstacles. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** only. * **Touch Controls (UI Overlay)**: * **Bottom Left**: Two large buttons for **Lean Back (Left Arrow)** and **Lean Forward (Right Arrow)**. * **Bottom Right**: Two large buttons for **Brake/Reverse** and **Accelerate (Gas)**. * **Responsiveness**: Controls must be responsive. Support multi-touch (e.g., leaning while accelerating). * **Visual Feedback**: Buttons should highlight/scale down slightly when pressed. * **Haptic Feedback**: Trigger `navigator.vibrate(50)` on hard landings and `navigator.vibrate(200)` on crashes. * **Restart**: A large "Retry" button appears clearly in the center of the screen upon failure. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Bike Mania is the ultimate test of motorcycle handling skills and nerve. This thrilling side-scrolling stunt game puts you in control of a powerful motorbike as you navigate through increasingly challenging obstacle courses filled with ramps, gaps, and hazardous terrain. Your mission is simple yet demanding: ride through bumpy and treacherous tracks without crashing, showcasing your precision riding skills with every jump and landing.

The game combines realistic physics with arcade-style gameplay, creating an engaging experience that's easy to learn but incredibly challenging to master. Each level presents unique obstacles that will test your ability to balance speed with control, making split-second decisions that mean the difference between victory and a spectacular crash.

Core Features

Challenging Obstacle Courses

Experience meticulously designed tracks that push your riding skills to the limit. From steep mountain paths to industrial construction sites, each environment presents unique challenges that require different strategies and techniques to overcome.

Realistic Physics Engine

Feel the authentic weight and momentum of your motorcycle as you navigate through complex terrain. The game's physics system accurately simulates bike handling, making every jump, landing, and turn feel realistic and satisfying.

Progressive Difficulty System

Start with manageable courses and gradually work your way up to expert-level challenges. Each completed level unlocks more demanding tracks that introduce new obstacles and require increasingly precise control.

Instant Restart Feature

Crashed? No problem! The quick restart function lets you immediately try again, encouraging experimentation and skill development without frustrating waiting times.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices. Whether you're playing on a desktop computer or mobile device, the responsive controls and optimized interface ensure a consistent gaming experience.

Gameplay Mechanics

The core gameplay revolves around maintaining balance and momentum while navigating obstacle-filled courses. Players must carefully manage their bike's speed and angle to successfully clear jumps, climb steep inclines, and descend treacherous slopes without losing control.

Timing is everything in Bike Mania. Too much speed can send you flying off course, while too little might leave you stuck on an obstacle or unable to clear a gap. The key to success lies in understanding each bike's handling characteristics and learning to read the terrain ahead.

Operation Guide

Mastering Bike Mania requires understanding the precise control system:

  • Up Arrow Key : Accelerate forward and climb steep surfaces
  • Down Arrow Key : Brake or reverse when needed
  • Left Arrow Key : Lean backward to control landing angles and prevent front flips
  • Right Arrow Key : Lean forward for better traction and to initiate front-heavy landings

The secret to success lies in the subtle use of lean controls. Proper weight distribution is crucial for maintaining balance during jumps and ensuring smooth landings. Practice the timing of acceleration and braking to maintain optimal speed through different terrain types.

Why Play This Game

Bike Mania offers the perfect combination of skill-based gameplay and instant gratification. Unlike complex racing games that require extensive learning, this game focuses on pure riding skill and physics understanding. It's ideal for quick gaming sessions or extended practice runs to perfect your technique.

The game's challenging nature makes it incredibly rewarding when you finally master a difficult section or complete a seemingly impossible level. Each success feels earned through skill development rather than luck, creating a genuine sense of accomplishment.

For motorcycle enthusiasts and stunt riding fans, Bike Mania provides a safe way to experience extreme riding scenarios that would be dangerous in real life. The game captures the essence of professional stunt riding while remaining accessible to players of all skill levels.

Frequently Asked Questions (FAQ)