G-Switch - Gravity Switching Parkour Game

Seele01-Flash
By
G-Switch is an innovative gravity-switching parkour game where players control a futuristic runner who can flip gravity at will. Master the art of running on walls and ceilings in this fast-paced platformer that supports both single-player and multiplayer modes.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**G-Switch: Gravity Runner**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Futuristic, minimal sci-fi aesthetic. The world should feel sleek and fast-paced. * **Character:** A stylized humanoid runner (similar to a "stickman" but with volume). The character should be primarily white with **bright neon cyan** accents on hair spikes and boots. They must wear a mechanical backpack (the gravity engine). * **Environment (Level Design):** * The game is a 2D side-scroller built in a 3D engine. * **Platforms:** Create a series of horizontal platforms at varying heights on both the "floor" and the "ceiling." The textures should be dark metallic grey with neon edges to contrast with the bright character. * **Background:** A scrolling parallax background with abstract sci-fi geometry or a simple gradient sky (teal to dark blue) to maintain high frame rates on mobile. * **Camera:** A side-view orthographic camera that follows the player's X-axis movement smoothly but keeps the Y-axis fixed relative to the active gravity plane. * **Effects:** * **Trail Renderer:** A cyan light trail behind the character to emphasize speed. * **Gravity Flip Effect:** A subtle screen shake or a flash of light when gravity switches. * **Speed Lines:** Radial particle effects at the edges of the screen as speed increases. ### 2. Audio Requirements * **BGM:** High-energy, fast-tempo electronic/techno track (140-160 BPM). It should feel driving and rhythmic to match the endless running nature. * **SFX:** * **Gravity Switch:** A distinct, sharp "woosh" or magnetic "zap" sound whenever the player taps the screen. * **Running:** Rhythmic metallic footsteps that stop when the character is mid-air. * **Crash/Death:** A digital "glitch" or "power down" sound effect. * **Checkpoint:** A positive, high-pitched chime. ### 3. Gameplay Loop * **Core Mechanic:** The character runs automatically to the right at an increasing speed. The player *cannot* jump. Instead, the player controls **Gravity**. * **Action:** Tapping the screen instantly flips the gravity vector (Up becomes Down, Down becomes Up). * **Objective:** Survive as long as possible by flipping gravity to switch between running on the floor and running on the ceiling to avoid obstacles and gaps. * **Fail State:** If the character misses a platform and falls off the screen (up or down), or hits a vertical obstacle/wall, the game ends. * **Multiplayer Twist (Optional AI Mode):** Include 1-2 AI "ghost" runners with different colors (Red, Green) that run alongside the player to simulate the chaotic multiplayer feel of the original game. ### 4. Mobile Controls & Interaction * **Orientation:** **Landscape Mode** (Essential for seeing upcoming obstacles). * **Touch Controls:** * **One-Tap Gameplay:** The entire screen is a single button. * **Action:** `touchstart` or `mousedown` triggers the gravity flip immediately. * **UI Layout:** * **Top Center:** Current Score / Distance. * **Top Right:** Pause Button (Min 44x44px touch target). * **Game Over Screen:** Large, thumb-friendly "Restart" button centered on the screen. * **Feedback:** * **Haptic Feedback:** Trigger a short vibration (using `navigator.vibrate(10)`) on every gravity switch to give the player tactile confirmation of the action. * **Visual Feedback:** The character should rotate 180 degrees physically when gravity flips to land feet-first on the new surface. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

G-Switch revolutionizes the traditional running game genre with its unique gravity-switching mechanics. In this futuristic parkour adventure, you control a sleek robotic runner navigating through challenging obstacle courses. The core innovation lies in your ability to flip gravity instantly, allowing you to run on floors, walls, and ceilings seamlessly.

The game combines precision platforming with high-speed action, creating an addictive experience that challenges both your reflexes and spatial awareness. With its clean, minimalist design and smooth animations, G-Switch delivers a polished gaming experience that's easy to learn but difficult to master.

Core Features

Innovative Gravity Mechanics

The standout feature of G-Switch is its gravity-switching system. With a simple button press, you can flip your character's orientation, turning walls into floors and ceilings into running surfaces. This mechanic opens up entirely new ways to navigate obstacles and creates unique puzzle-platforming challenges.

Multiple Game Modes

  • Single Player Campaign : Progress through increasingly difficult levels, mastering new obstacles and challenges
  • Multiplayer Racing : Compete with up to 8 friends locally in split-screen races
  • Endless Running : Test your skills in infinite procedurally generated levels
  • Challenge Modes : Tackle special objectives and time-based challenges

Cross-Platform Compatibility

G-Switch runs smoothly in any modern web browser without requiring downloads or installations. The game is fully compatible with desktop computers, laptops, tablets, and mobile devices, ensuring you can enjoy gravity-defying action anywhere.

Competitive Multiplayer

The local multiplayer mode supports up to 8 players simultaneously, making it perfect for parties and competitive gaming sessions. Each player uses different keys, allowing multiple people to play on the same keyboard.

Gameplay Mechanics

G-Switch challenges players to navigate through obstacle-filled levels while maintaining momentum and avoiding hazards. The gravity-switching mechanic is both the primary tool and the main challenge - knowing when and where to flip gravity is crucial for success.

Level Design Philosophy

Each level is carefully crafted to teach new concepts while building upon previously learned skills. Early stages introduce basic gravity switching, while later levels incorporate complex obstacle patterns that require split-second timing and strategic thinking.

Obstacle Variety

Players encounter various challenges including: - Gaps and Pits : Require precise timing and gravity switches - Moving Platforms : Test your ability to adapt to changing environments - Spike Traps : Demand careful navigation and quick reflexes - Complex Mazes : Challenge spatial reasoning and planning skills

Operation Guide

Basic Controls

  • Click or Press Any Key : Switch gravity direction
  • Hold : Continuous gravity switching for rapid direction changes
  • Release : Maintain current gravity orientation

Multiplayer Controls

In multiplayer mode, each player is assigned a specific key: - Player 1 : Spacebar or Left Mouse Click - Player 2 : A Key - Player 3 : S Key - Additional Players : Various keyboard keys as displayed on screen

Pro Tips for Success

  1. Timing is Everything : Don't switch gravity too early or too late - practice makes perfect
  2. Look Ahead : Anticipate upcoming obstacles to plan your gravity switches
  3. Maintain Momentum : Avoid unnecessary direction changes that slow you down
  4. Practice Precision : Use quick taps for small adjustments, holds for major direction changes
  5. Learn Patterns : Each level has optimal paths - memorize them for better performance

Why Play G-Switch

Unique Gaming Experience

G-Switch offers something truly different in the crowded platformer genre. The gravity-switching mechanic creates a fresh take on running games that feels both innovative and intuitive.

Perfect for All Skill Levels

While easy to pick up, G-Switch provides depth for hardcore gamers. Beginners can enjoy the basic levels, while experts can perfect their times and tackle the most challenging stages.

Social Gaming Fun

The multiplayer mode transforms G-Switch into a party game. Watching friends struggle with gravity switches creates hilarious moments and intense competition.

No Commitment Required

As a browser-based game, G-Switch respects your time. Jump in for a quick session or spend hours perfecting your runs - the choice is yours.

Completely Free

Enjoy the full G-Switch experience without any cost. No hidden fees, no premium content - just pure gaming fun accessible to everyone.

Technical Excellence

G-Switch demonstrates exceptional optimization for web browsers, delivering smooth 60fps gameplay even on older devices. The responsive controls ensure that every gravity switch feels immediate and precise, crucial for a game that demands split-second timing.

The game's minimalist art style isn't just aesthetically pleasing - it also ensures fast loading times and consistent performance across different devices and internet connections.

Frequently Asked Questions (FAQ)