Space Waves - Arcade Obstacle Avoidance Game

Seele01-Flash
By
Space Waves is an addictive arcade game where you pilot an arrow through 33 increasingly difficult levels filled with obstacles, rotating gears, and spikes. Choose any level and test your reflexes in this challenging space adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Space Waves (Neon Geometry Racer)**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Cyberpunk/Neon Arcade aesthetic. High contrast. * **Background**: Deep purple (`#2a003b`) infinite scrolling background with a faint, darker purple grid pattern to give a sense of speed. * **Player**: A sleek, white and yellow stylized arrow or paper-plane shape. It must have a glowing trail (using a trail renderer or ribbon effect) that draws a yellow zigzag line behind it as it moves, visualizing the "wave". * **Level Design**: The terrain consists of neon white outlines representing floors and ceilings. * **Obstacles**: Neon triangular spikes and rotating "sawblade" gears placed on the floor, ceiling, or floating in the middle. * **Post-Processing**: Essential implementation of **Bloom/Glow effects** (using `UnrealBloomPass` in Three.js) to make the white lines and the yellow player trail pop against the dark background. * **Performance**: Use simple geometric shapes (BufferGeometry) for obstacles to maintain 60FPS on mobile. Avoid complex lighting; use emissive materials for the neon look. ### 2. Audio Requirements * **BGM**: Fast-paced, driving Synthwave/Retrowave track (electronic, bass-heavy) to induce a "flow state." * **Sound Effects (SFX)**: * **Thrust**: A subtle, continuous "hum" or low-pass filtered wind noise that changes pitch slightly when ascending. * **Death**: A digital "glitch" or "glass shattering" sound when hitting a wall/spike. * **Win/Level Clear**: A short, uplifting synth arpeggio. * **UI Click**: A crisp, sci-fi beep. ### 3. Gameplay Loop * **Core Mechanic**: Infinite side-scrolling or level-based progression. The player moves forward automatically at a constant speed. * **Physics Logic**: * **Input Active (Hold)**: The player ascends diagonally (approx 45 degrees up). * **Input Inactive (Release)**: The player descends diagonally (approx 45 degrees down). * This creates a triangular "Wave" movement pattern. There is no horizontal control, only vertical. * **Collision**: * If the player's mesh intersects with any white wall, spike, or sawblade -> **Instant Death**. The player particles explode, and the level resets immediately. * **Goal**: Reach the end of the level tunnel (represented by a finish line or portal) to advance to the next difficulty tier. * **Difficulty Curve**: Start with wide tunnels. Progressively introduce narrower gaps, rapid direction changes (zigzag corridors), and moving obstacles. ### 4. Mobile Controls & Interaction * **Control Scheme**: **One-Touch Control**. * `touchstart` / `mousedown`: Apply upward force (Ascend). * `touchend` / `mouseup`: Apply downward force (Descend). * **Orientation**: Landscape mode is preferred for a wider view of upcoming obstacles. * **Responsiveness**: The reaction must be instant. No physics inertia/damping on the turn; the directional change should be sharp (angular) to allow for precise navigating of tight spikes. * **UI/UX**: * A "Pause" button in the top-right corner (min-size 44px). * Start Screen: Large "Tap to Start" overlay. * **Feedback**: Slight screen shake on death. ### 5. Code Structure & Tech Stack * Use **Three.js** for rendering. * Use **Cannon.js** (optional) or simple AABB bounding box logic for collision (preferred for performance). * Ensure the code handles window resizing and device pixel ratio correctly. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Space Waves

Space Waves is a thrilling arcade-style obstacle avoidance game that puts your reflexes and precision to the ultimate test. Navigate a sleek arrow through treacherous space environments filled with walls, rotating gears, and deadly spikes across 33 uniquely designed levels. Each level offers a distinct challenge with varying difficulty levels, allowing players to choose their preferred intensity and gradually build their skills.

Core Features

Complete Level Freedom

Unlike traditional progression games, Space Waves lets you jump to any of the 33 levels immediately. Want to test your skills on the hardest difficulty right away? Go for it! Prefer to start easy and work your way up? That's perfectly fine too.

Progressive Difficulty System

Levels are intelligently designed with increasing complexity: - Beginner Levels : Wider spaces and gentler angles for learning the mechanics - Intermediate Levels : Tighter corridors with moderate obstacle density - Expert Levels : Narrow passages packed with rotating hazards and spike walls

Minimalist Controls, Maximum Challenge

The beauty of Space Waves lies in its simplicity. With just one-button control, the game focuses purely on timing, precision, and spatial awareness. Hold to ascend, release to descend - sounds simple, but mastering the physics takes genuine skill.

Cross-Platform Compatibility

Play seamlessly across all devices - desktop computers, tablets, and smartphones. The game automatically adapts to your screen size and input method, ensuring optimal gameplay whether you're using mouse clicks or touch controls.

Gameplay Mechanics

Navigation Physics

Your arrow moves with realistic momentum and gravity simulation. Quick taps create short bursts of upward movement, while longer holds generate sustained ascent. The key is finding the perfect rhythm for each obstacle pattern.

Obstacle Varieties

Encounter multiple hazard types: - Static Walls : Require precise navigation through narrow gaps - Rotating Gears : Timing-based challenges with moving safe zones - Spike Barriers : Deadly protrusions that demand pixel-perfect accuracy - Combination Hazards : Advanced levels mix multiple obstacle types

Operation Guide

Desktop Controls

  • Left Mouse Button / W Key / Spacebar : Hold to make the arrow ascend, release to descend
  • P Key : Pause the game at any time

Mobile Controls

  • Touch and Hold : Press anywhere on screen to ascend, release to descend
  • Pause : Tap the pause button in the game interface

Pro Tips for Success

  1. Use Zigzag Movement : When approaching obstacle clusters, alternate between short ascents and descents to maintain forward momentum
  2. Study Patterns : Each level has optimal routes - observe the obstacle layout before rushing forward
  3. Practice Patience : Rushing leads to crashes; smooth, controlled movement wins the day
  4. Master the Physics : Learn how your arrow responds to different hold durations

Why Play Space Waves

Perfect for Quick Sessions

Each level can be completed in under a minute, making it ideal for short gaming breaks. The instant-restart feature means you can retry challenging sections without delay.

Genuine Skill Development

Unlike luck-based games, Space Waves rewards genuine improvement in hand-eye coordination, timing, and spatial reasoning. You'll feel your reflexes sharpening with each attempt.

No Commitment Required

With level selection freedom, there's no pressure to complete everything in order. Jump around, find your favorite challenges, and play at your own pace.

Completely Free Experience

Enjoy the full game with all 33 levels absolutely free. No hidden costs, no premium upgrades - just pure gaming enjoyment accessible to everyone.

Frequently Asked Questions (FAQ)