G-Switch 4 - Gravity-Defying Platform Runner

Seele01-Flash
By
G-Switch 4 is the ultimate gravity-defying platform runner that lets you flip gravity with a single click. Play solo or with up to 7 friends in multiplayer mode, create custom levels, and experience endless running action.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**G-Switch 4: Gravity Defying Runner**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: High-contrast **Sci-Fi / Futuristic** aesthetic. Use a 2.5D perspective (3D objects on a 2D gameplay plane). * **Character**: A stylized robotic runner (Low-poly humanoid). The character should have a glowing trail effect (TrailRenderer) to emphasize speed. * **Environment**: * **Platforms**: sleek, metallic platforms placed on both the "floor" and the "ceiling". * **Background**: A scrolling parallax background featuring a cybernetic grid or a distant futuristic city to convey high speed. * **Obstacles**: Stationary blocks, spikes, or sawblades that the player must avoid. * **Mobile Optimization**: Use `InstancedMesh` for repetitive platform blocks to reduce draw calls. Limit real-time lights; use basic materials (MeshLambertMaterial or MeshBasicMaterial) with neon colors (Cyan #00FFFF, Magenta #FF00FF) to simulate lighting without performance cost. * **Camera**: Side-scrolling camera that smoothly follows the player's X-axis movement but stays fixed on the Y-axis center to show both floor and ceiling clearly. ### 2. Audio Requirements * **BGM**: Fast-paced, high-energy **Drum and Bass** or **Synthwave** track (160+ BPM) to match the intense speed. * **Sound Effects (SFX)**: * **Gravity Switch**: A sharp, digital "whoosh" or vacuum sound when gravity inverts. * **Landing**: A heavy metallic "thud" or magnetic click when the character's feet touch a surface. * **Crash/Death**: A digital glitch noise or glass shattering sound. * **Checkpoint**: A harmonious chime. ### 3. Gameplay Loop * **Core Mechanic**: The character runs forward (X-axis) automatically with increasing speed. The player **cannot jump**; they can only **invert gravity**. * **Gravity Logic**: When the screen is tapped, the character's gravity immediately flips (from -Y to +Y or vice versa). The character falls towards the ceiling or floor until they collide with a platform. * **Win/Loss Conditions**: * **Loss**: If the character runs into a wall, hits an obstacle, or falls off the screen (top or bottom void), the game resets to the last checkpoint. * **Win**: Reach the finish line gate. * **Multiplayer Logic (Optional for code generation context)**: Support up to 2-4 local players where each player has a dedicated "lane" or specific color character, running simultaneously. ### 4. Mobile Controls & Interaction * **Single Player Control**: **"Tap Anywhere"** system. Touching any part of the screen instantly flips gravity. * **Multiplayer Control (Local)**: Divide the screen into distinct touch zones (e.g., Left half for Player 1, Right half for Player 2) or place dedicated buttons in corners for tablets. * **Orientation**: **Landscape Mode** only, to allow sufficient view of the path ahead. * **UI Elements**: * Large, distinct "Play/Retry" button (minimum 44x44px touch target). * A progress bar at the top showing distance to the finish line. * **Feedback**: Implement **Camera Shake** on impact/death. If possible, trigger `navigator.vibrate(50)` on gravity switch for tactile feedback on supported devices. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About G-Switch 4

G-Switch 4 represents the pinnacle of gravity-defying platform gaming, delivering the most advanced gravity-controlling experience in the acclaimed G-Switch series. This revolutionary running game challenges players to master the art of gravity manipulation while navigating through intricate obstacle courses at breakneck speeds.

The game combines classic endless runner mechanics with innovative gravity-switching gameplay, creating a unique platforming experience that keeps players on the edge of their seats. With its sleek futuristic design and smooth controls, G-Switch 4 offers both casual fun and competitive challenges.

Core Features

Revolutionary Gravity Mechanics

The core gameplay revolves around instant gravity switching - simply click or tap to flip your character between floor and ceiling, creating fluid movement through complex environments. This mechanic transforms traditional running into an art form of timing and precision.

Massive Multiplayer Support

G-Switch 4 supports up to 7 players simultaneously in local multiplayer mode, making it perfect for party gaming and competitive sessions. Race against friends on the same device, with each player trying to survive the longest in the gravity-defying gauntlet.

Level Creation System

Unleash your creativity with the built-in level editor . Design custom courses, experiment with obstacle placement, and share your creations with the global community. Play levels designed by other players and rate their creativity and difficulty.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices - whether you're on desktop, mobile phone, or tablet. The game's responsive design ensures optimal performance on any screen size.

Gameplay Mechanics

Basic Controls

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

  • Single Click/Tap : Instantly flip gravity direction
  • Hold : Maintain current gravity orientation
  • Timing : Master the rhythm of gravity switches to navigate obstacles

Survival Challenge

The objective is simple yet demanding: survive as long as possible while the game progressively increases in speed and complexity. Avoid obstacles, navigate tight spaces, and outlast your opponents in multiplayer matches.

Skill Development

Progress from basic gravity switching to advanced techniques like: - Precision timing for narrow passages - Rhythm mastery for obstacle sequences - Strategic positioning in multiplayer competitions

Why Play G-Switch 4

Completely Free Experience

G-Switch 4 is 100% free to play with no hidden costs, premium features, or pay-to-win mechanics. Access all game modes, the level editor, and multiplayer features without spending a penny.

Instant Accessibility

No downloads or installations required - simply open your web browser and start playing immediately. The game loads quickly and runs smoothly on any modern browser.

Endless Replayability

With procedurally challenging levels, user-generated content, and competitive multiplayer, G-Switch 4 offers unlimited replay value. Each session presents new challenges and opportunities to improve your skills.

Social Gaming

The local multiplayer feature makes G-Switch 4 perfect for social gaming sessions. Gather friends around a single device for intense gravity-racing competitions that will have everyone laughing and competing for survival bragging rights.

Creative Expression

The level editor transforms players into game designers, allowing you to create, share, and experience an infinite variety of custom challenges created by the global community.

Frequently Asked Questions (FAQ)