G-Switch 2 - Gravity Switching Platform Game

Seele01-Flash
By
G-Switch 2 is an innovative gravity-switching platform game that challenges players to run, jump, and defy gravity through endless obstacle courses. Perfect for solo adventures or competitive multiplayer action.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Gravity Switch Runner (G-Switch Style)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Clean, futuristic Sci-Fi aesthetic. Use a "2.5D" perspective (side-scrolling gameplay but with 3D models and depth). * **Characters:** Create a low-poly, sleek android runner model (similar to a refined stickman). The body should be mostly white/metallic, with distinct emissive (glowing) color accents on the head/helmet and boots to differentiate players (e.g., Player 1 is Cyan, Player 2 is Magenta). * **Environment:** * **Track:** Metallic grey platforms with dark industrial textures. The track should have top and bottom lanes, as the core mechanic involves switching gravity. * **Background:** A scrolling parallax background depicting a high-tech tunnel or a futuristic city skyline in cool tones (blues, greys, teals). * **Effects:** * **Gravity Switch:** When gravity flips, emit a quick radial shockwave distortion or particle burst. * **Speed Lines:** Subtle trails following the character's movement to emphasize speed. * **Performance:** Use baked lighting for static geometry. Implement object pooling for track segments to ensure a steady 60 FPS on mobile devices. ### 2. Audio Requirements * **BGM:** A fast-paced, driving Drum & Bass or Techno track. It should feel urgent and rhythmic to match the running speed (approx. 160-170 BPM). * **Sound Effects (SFX):** * **Gravity Flip:** A sharp, synthesized "woosh" or "magnetic snap" sound. * **Running:** Rhythmic metallic footsteps that change pitch slightly depending on speed. * **Death/Crash:** A digital static noise or a glass-shattering sound when hitting an obstacle. * **Checkpoint:** A pleasant, high-pitched chime. ### 3. Gameplay Loop * **Core Mechanic:** The character runs automatically to the right. The player controls only one action: **inverting gravity**. * **Objective:** Survive as long as possible (Endless Mode) or reach the finish line (Level Mode) without running off the screen or hitting a vertical wall. * **Gravity Logic:** When the screen is tapped, the character flips from the floor to the ceiling (and vice versa). The character runs on whichever surface they land on. * **Multiplayer Twist:** Support a local 2-player mode on the same device. Both characters run on the same screen. If one player gets stuck behind an obstacle and goes off-screen, they are eliminated. * **Obstacles:** * Gaps in the floor/ceiling. * Vertical blockers that require precise timing to flip over/under. * Speed-up zones that temporarily increase game speed. ### 4. Mobile Controls & Interaction * **Orientation:** Landscape Mode (Horizontal). * **Controls:** * **Single Player:** Tap *anywhere* on the screen to flip gravity. * **Local Multiplayer:** Split the screen into two invisible touch zones. Left half controls Player 1; Right half controls Player 2. * **UI/UX:** * **Start Screen:** Large, finger-friendly "Play" button (min 88px height). * **In-Game:** Minimalist HUD. Display distance/score in the top center. * **Feedback:** Provide haptic feedback (short vibration) on every gravity switch to give the player physical confirmation of the action. * **Camera:** The camera should smoothly follow the leading player but keep the framing centered enough to see upcoming obstacles. If the vertical distance between players becomes large, zoom out slightly. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About G-Switch 2

G-Switch 2 is a revolutionary platform runner that puts gravity control at your fingertips. This fast-paced action game combines precision platforming with unique gravity-switching mechanics, creating an addictive gameplay experience that keeps players coming back for more. Navigate through challenging obstacle courses by running on floors, walls, and ceilings as you master the art of gravity manipulation.

Core Features

Revolutionary Gravity Mechanics

The game's standout feature is its intuitive gravity-switching system. With a simple key press, flip your character's gravitational orientation to run on any surface. This mechanic transforms traditional platform gaming into a mind-bending experience where walls become floors and ceilings become pathways.

Multiplayer Competition

Compete with up to 8 players simultaneously in thrilling multiplayer races. Challenge friends locally or test your skills against other players in real-time competitions. The multiplayer mode adds intense competitive elements as players race to survive the longest in increasingly difficult sections.

Endless Challenging Levels

Experience procedurally generated obstacle courses that provide unlimited replayability. Each run presents new challenges with spinning blades, moving platforms, narrow passages, and complex architectural puzzles that test your reflexes and timing.

Smooth Parkour Action

Enjoy fluid character animations and responsive controls that make every gravity switch feel natural and satisfying. The game's parkour elements combine running, jumping, and gravity manipulation for seamless movement through complex environments.

Gameplay Mechanics

G-Switch 2 revolves around precise timing and quick decision-making. Players must anticipate obstacles and switch gravity at the perfect moment to navigate through increasingly complex levels. The game rewards both speed and accuracy, as rushing too quickly can lead to crashes while moving too slowly results in elimination.

Dynamic Obstacle Design

Face a variety of challenging obstacles including: - Rotating mechanical hazards - Moving platforms and barriers - Narrow passages requiring precise timing - Multi-level architectural challenges - Speed-boosting sections that test reflexes

Controls and Operation Guide

Single Player Controls: - X Key or Click : Switch gravity/flip orientation - Running : Automatic - character runs continuously - Timing : Press gravity switch at the right moment to avoid obstacles

Multiplayer Controls: - Player 1 : X key - Player 2 : M key - Players 3-8 : Various keyboard keys assigned automatically

The controls are intentionally simple to focus gameplay on timing and strategy rather than complex input combinations. This accessibility makes the game easy to learn but challenging to master.

Game Modes and Features

Single Player Campaign

Perfect your gravity-switching skills in solo mode. Practice timing, learn obstacle patterns, and achieve personal best distances. The single-player mode serves as excellent training for multiplayer competitions.

Local Multiplayer

Gather friends for intense local multiplayer sessions supporting up to 8 players. Each player uses different keys, creating hilarious chaos as everyone tries to survive the increasingly difficult obstacle courses.

Endless Runner Elements

The game combines traditional endless runner mechanics with innovative gravity control. Courses become progressively more challenging, introducing new obstacle types and faster speeds to test even experienced players.

Why Play G-Switch 2

Perfect for Quick Sessions : Each game session lasts just a few minutes, making it ideal for short breaks or casual gaming sessions.

Competitive Fun : The multiplayer mode creates instant party game entertainment, perfect for gatherings or competitive gaming with friends.

Skill Development : Improve hand-eye coordination, timing, and quick decision-making through engaging gameplay that feels rewarding rather than frustrating.

Free Entertainment : Enjoy completely free gameplay with no hidden costs, advertisements, or premium content barriers.

Cross-Platform Accessibility : Play directly in any modern web browser without downloads, installations, or special software requirements.

Platform and Accessibility

G-Switch 2 runs smoothly on all modern web browsers and devices. Whether you're using a desktop computer, laptop, tablet, or smartphone, the game provides consistent performance and responsive controls. The browser-based platform ensures you can play anywhere with an internet connection.

Frequently Asked Questions (FAQ)