G-Switch - Gravity-Defying Parkour Runner

Seele01-Flash
By
G-Switch is an innovative gravity-defying parkour runner that lets you control gravity itself. Navigate through challenging obstacle courses by flipping gravity, supporting up to 8 players in multiplayer mode.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "G-Switch (Gravity Switch Runner)". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a futuristic, clean, sci-fi aesthetic reminiscent of classic Flash runners. The world should feel metallic and industrial but polished. * **Player Character:** A stylized, humanoid robot runner (use simple geometries like capsules and boxes to approximate the look). The character should have glowing elements (cyan or neon blue) on their feet and head to represent "anti-gravity boots." * **The Track:** Generate an endless, scrolling industrial corridor. The "floor" and "ceiling" are interchangeable. Platforms should be metallic grey with neon edges. Obstacles include gaps, spikes, and sawblades. * **Camera:** Use a side-scrolling orthographic camera or a perspective camera with a tight field of view, tracking the player horizontally while keeping vertical movement (gravity switching) clearly visible. * **Effects:** Add a "speed trail" or motion blur effect behind the character. When gravity switches, create a small particle burst or screen shake effect. * **Mobile Optimization:** Use simple materials (MeshLambertMaterial or MeshPhongMaterial) rather than expensive PBR. Limit the number of active lights. Recycle platform meshes (object pooling) to maintain high FPS on mobile browsers. ### 2. Audio Requirements * **BGM:** A high-energy, fast-paced Drum & Bass or Techno track. It should feel propulsive and intense to match the running speed. * **Sound Effects (SFX):** * **Gravity Switch:** A sharp, mechanical "wshhh" or "zip" sound every time the player flips gravity. * **Running:** Rhythmic metallic footsteps that stop when the player is airborne. * **Crash/Fail:** A robotic power-down sound or a metallic crunch. * **UI:** Digital blips for menu selection. ### 3. Gameplay Loop * **Core Mechanic:** The character runs automatically to the right at an increasing speed. The player does *not* jump. Instead, they **invert gravity**. * **Interaction Logic:** When the screen is tapped, gravity flips. If the player is on the floor, they fall to the ceiling. If on the ceiling, they fall to the floor. * **Obstacles:** The level design must force the player to switch gravity constantly to avoid gaps in the floor/ceiling or physical barriers. * **Win/Loss:** The game is an endless runner (or level-based). The player loses if they run into a wall, fall off the screen (miss a platform), or get crushed. Score is based on distance traveled. * **Multiplayer Mode (Optional/Advanced):** If possible, include a local multiplayer mode where the screen is split, or multiple runners are on the same screen, controlled by tapping different corners of the device. ### 4. Mobile Controls & Interaction * **Control Scheme:** **One-Tap Gameplay.** The entire screen is the button. * **Tap anywhere:** Invert Gravity immediately. * **Orientation:** **Landscape Mode** is mandatory to see upcoming obstacles. * **Responsiveness:** Input must be instant with zero latency. The visual feedback of the gravity switch (rotation of the character or simple vertical velocity change) must happen the exact moment the finger touches the screen. * **UI Layout:** * **HUD:** Keep it minimal. Score in top center. Pause button in top right (safe zone, away from accidental taps). * **Start Screen:** Large "Tap to Run" button. * **Game Over:** "Retry" button must be large (at least 60x60px effective touch area) for quick restarting. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About G-Switch

G-Switch is a revolutionary parkour running game that redefines the platformer genre with its unique gravity-switching mechanics. This fast-paced action game challenges players to navigate through complex obstacle courses by mastering the power to flip gravity at will. With its sleek futuristic design and intense gameplay, G-Switch has become a favorite among parkour game enthusiasts worldwide.

The game features a distinctive sci-fi aesthetic with smooth animations and a dynamic soundtrack that perfectly complements the high-speed action. Players control a robotic character equipped with gravity-manipulation technology, running through increasingly challenging levels filled with gaps, barriers, and gravity-defying obstacles.

Core Features

Revolutionary Gravity Mechanics

The cornerstone of G-Switch is its innovative gravity-switching system. With a simple key press, players can instantly flip gravity, allowing their character to run on ceilings, walls, and any surface. This mechanic transforms traditional platforming into a three-dimensional puzzle of timing and spatial awareness.

Multiplayer Mayhem

G-Switch supports up to 8 players simultaneously on the same keyboard, making it perfect for party gaming sessions. Friends can compete head-to-head, trying to outlast each other in the challenging obstacle courses. The multiplayer mode adds a competitive edge that keeps players coming back for more.

Endless Runner Experience

The game features an endless running mode where the challenge continuously increases. Players must react quickly to upcoming obstacles, switching gravity at precisely the right moments to avoid crashes and maintain momentum.

Progressive Difficulty

Starting with manageable obstacles, G-Switch gradually introduces more complex challenges. Advanced levels feature rapid gravity switches, narrow passages, and intricate obstacle combinations that test even experienced players' reflexes and timing.

Gameplay Mechanics

G-Switch combines the excitement of endless running with the strategic thinking of puzzle platformers. Players must:

  • Master Timing : Perfect the art of gravity switching at crucial moments
  • Maintain Momentum : Keep running speed while navigating obstacles
  • Spatial Awareness : Understand three-dimensional movement possibilities
  • Quick Reactions : Respond instantly to changing environments

Operation Guide

G-Switch features intuitive one-button controls that are easy to learn but challenging to master:

  • Single Player : Press any key or click to switch gravity
  • Multiplayer Controls :
  • Player 1: Z key
  • Player 2: X key
  • Player 3: C key
  • Player 4: V key
  • Player 5: B key
  • Player 6: N key
  • Player 7: M key
  • Player 8: Comma key

The simplicity of the one-button control scheme makes G-Switch accessible to players of all skill levels, while the precise timing required for mastery provides depth for competitive players.

Why Play G-Switch

Unique Gaming Experience

G-Switch offers something truly different in the crowded platformer market. The gravity-switching mechanic creates gameplay scenarios impossible in traditional runners, making each playthrough feel fresh and exciting.

Perfect for Social Gaming

With support for up to 8 players, G-Switch is ideal for parties, family gatherings, or casual gaming sessions with friends. The competitive nature of multiplayer mode creates memorable moments and friendly rivalry.

Instant Accessibility

As a browser-based game, G-Switch requires no downloads, installations, or account creation. Simply open your web browser and start playing immediately on any device.

Skill Development

G-Switch enhances hand-eye coordination, reaction time, and spatial reasoning skills. The game's progressive difficulty curve ensures continuous improvement and achievement satisfaction.

Addictive Gameplay Loop

The combination of simple controls, challenging gameplay, and the constant pursuit of better scores creates an addictive experience that keeps players engaged for hours.

Frequently Asked Questions (FAQ)