Amazing Cube Adventure - Gravity-Switching Platform Runner

Seele01-Flash
By
Amazing Cube Adventure is an innovative platform runner that combines classic jumping mechanics with gravity-switching gameplay. Navigate through challenging levels filled with spikes, pits, and obstacles while your cube slides automatically from left to right.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Amazing Cube Adventure". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Minimalist "Flat 3D" aesthetic with a vibrant color palette. * **Player Character:** A blue cube (`BoxGeometry`) with slightly rounded edges (use `RoundedBoxGeometry` or a texture with rounded borders). It features a single "Cyclops" eye (`SphereGeometry` white sclera + black pupil) on the front face to give it personality. Add a trail renderer or particle stream behind the cube to emphasize speed. * **Environment:** * **Background:** A smooth, static vertical gradient from Cyan (top) to Purple (bottom) to match the reference imagery. * **Platforms:** Clean white or light gray blocks. * **Obstacles:** * **Spikes:** Dark, sharp cones (`ConeGeometry`) placed on floor and ceiling. * **Spinning Hazards:** Star-shaped rotating obstacles (composed of intersecting tetrahedrons) that float in mid-air. * **Gravity Pads:** Glowing translucent tiles on the floor that trigger gravity reversal. * **Camera:** Orthographic camera (side-scrolling view) slightly angled to show depth (2.5D), tracking the player's X-position smoothly. * **Mobile Optimization:** Use `InstancedMesh` for repeating platforms and spikes to minimize draw calls. Use simple directional lighting with soft shadows. Avoid complex post-processing; rely on vertex colors and basic materials (`MeshLambertMaterial`) for performance. ### 2. Audio Requirements * **BGM:** Upbeat, fast-tempo 8-bit or Synthwave electronic track that syncs well with constant movement (looping). * **Sound Effects (SFX):** * **Jump:** A retro "upward" synth slide or pluck sound. * **Gravity Switch:** A distinct "woosh" or phase-shift sound. * **Death:** A crunching noise followed by a shattering glass sound. * **Level Complete:** A high-pitched, positive victory jingle. ### 3. Gameplay Loop * **Core Mechanic:** The cube automatically moves forward (positive X-axis) at a constant speed. The player cannot stop moving. * **Action System:** * **Tap:** Single Jump. * **Double Tap:** Double Jump (while in mid-air). * **Gravity Switch:** Upon colliding with a "Gravity Pad," the global gravity inverts (from -Y to +Y), flipping the cube to run on the ceiling. The camera should visually flip or rotate 180 degrees smoothly. * **Hazards:** Hitting any spike, rotating star, laser beam, or falling into a bottomless pit results in immediate "Game Over." * **Win Condition:** Reach the finish line flag/portal at the end of the level. * **Fail Condition:** Collision with obstacles triggers a particle explosion effect (cube shatters into smaller cubes) and instantly restarts the level or shows a "Try Again" UI. ### 4. Mobile Controls & Interaction * **Control Scheme:** **Full-screen tap**. The entire screen serves as the jump button to prevent miss-clicks during fast gameplay. * **Orientation:** Force **Landscape Mode** to provide a wider view of upcoming obstacles. * **UI Elements:** * Minimalist HUD: Score/Distance counter in the top center. * Pause Button: Top-right corner (minimum touch target 44x44px). * Game Over Screen: Large "Restart" button centered for easy thumb access. * **Feedback:** * **Visual:** "Squash and stretch" animation on the cube when jumping and landing to simulate weight. * **Haptic:** Trigger a short vibration (using `navigator.vibrate`) on death or when hitting a gravity switch. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Amazing Cube Adventure is a thrilling platforming puzzle runner that challenges players with its unique gravity-switching mechanics. Rated 3.6/5 by players, this HTML5 game offers an engaging mix of precision jumping, obstacle avoidance, and mind-bending gravity reversals. Your cube character moves automatically, requiring perfect timing and quick reflexes to survive increasingly challenging levels.

Core Features

Innovative Gravity Mechanics

The standout feature of Amazing Cube Adventure is its gravity-switching system. Mid-level, you'll encounter gravity switchers that flip the entire world upside down, forcing you to adapt your jumping strategy and think in reverse. This mechanic keeps gameplay fresh and constantly challenging.

Automatic Sliding Action

Unlike traditional platformers where you control movement speed, your cube slides automatically from left to right. This creates a unique rhythm-based gameplay where timing becomes everything. You must anticipate obstacles and plan your jumps accordingly.

Progressive Difficulty

Each level introduces new obstacles and challenges: - Spike pits that require precise jumping - Overhead spikes demanding careful timing - Laser barriers that test your reflexes - Cliff edges requiring perfect distance judgment - Multiple obstacle combinations for advanced players

Double Jump System

Master the double jump mechanic to navigate complex obstacle sequences. Time your second jump perfectly to clear multiple hazards or adjust your trajectory mid-air.

Gameplay Mechanics

Core Objective

Your goal is simple yet challenging: reach the end of each level while avoiding all obstacles. The automatic sliding means you can't slow down or stop - only jump to safety.

Obstacle Types

  • Ground spikes : Jump over these deadly barriers
  • Ceiling spikes : Duck under or time your jumps carefully
  • Pits : Use precise jumping to clear gaps
  • Lasers : Navigate through moving beam patterns
  • Switches : Roll over these to activate gravity changes

Controls Guide

Simple Yet Precise Controls

  • Mouse Click : Execute a single jump
  • Double Mouse Click : Perform a double jump while airborne
  • Timing : Master the rhythm of automatic sliding

The minimalist control scheme ensures anyone can pick up and play, while mastery requires practice and perfect timing.

Advanced Techniques

  • Jump Buffering : Click slightly before obstacles for consistent clearing
  • Double Jump Timing : Save your second jump for emergency corrections
  • Gravity Adaptation : Quickly adjust to upside-down controls after switches

Why Play Amazing Cube Adventure

Perfect for Quick Sessions

The automatic progression and level-based structure make this ideal for quick gaming sessions. Each level can be completed in minutes, perfect for breaks or commuting.

Cross-Platform Compatibility

As an HTML5 game, Amazing Cube Adventure runs smoothly on: - Desktop computers (Windows, Mac, Linux) - Mobile devices (iOS and Android) - Tablets and laptops - Any modern web browser

No Download Required

Start playing instantly through your web browser. No installation, no storage space required, and no lengthy loading times.

Skill Development

  • Reaction time improvement : Quick obstacle recognition
  • Timing precision : Perfect jump execution
  • Spatial awareness : Navigation in gravity-flipped environments
  • Pattern recognition : Learning obstacle sequences

Competitive Element

Compete for leaderboard positions by completing levels faster and with fewer attempts. Challenge friends and track your improvement over time.

Frequently Asked Questions (FAQ)