Leap and Avoid 2 - Ball Platform Adventure Game

Seele01-Flash
By
Leap and Avoid 2 is an exciting physics-based platform adventure where you control a nimble white ball through challenging environments. Navigate safe platforms, avoid deadly obstacles, and collect coins to unlock powerful upgrades.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Leap and Avoid 2". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-contrast "Cyberpunk Arcade" aesthetic. Use a dark color palette (deep purples, navy blues) for the background to make the gameplay elements pop. * **The Player (Ball):** A smooth, high-poly sphere (white `MeshStandardMaterial` with high roughness). It must have a **yellow emissive glow** and a ribbon-like **trail renderer** (using an array of mesh positions) that follows its movement to simulate speed, matching the reference image. * **Platforms:** * **Safe Platforms:** Geometric rectangular prisms. Color: Light purple/Cool Grey with **bright white glowing edges** (emissive). * **Deadly Platforms:** distinctly marked in **Matte Black** or Dark Red. Touching these triggers a "game over" state. * **Collectibles:** Floating gold coins (torus or cylinder geometry) rotating continuously above the path. * **Environment:** A "High-Tech Lab/Cave" abstraction. Use a wireframe grid floor far below the play area and a dark skybox with faint, moving laser beams or geometric constellations in the distance. * **Lighting:** Use a scene-wide `AmbientLight` (low intensity) and a `DirectionalLight` (simulating a sun/lab light) that casts shadows. Attach a subtle `PointLight` to the ball itself so it illuminates the ground as it moves. * **Mobile Optimization:** Use `InstancedMesh` for repeated platforms and coins to reduce draw calls. Limit particle effects to collision events only. ### 2. Audio Requirements * **BGM:** A fast-paced, driving **Synthwave or Electro-Pop** track with a heavy bassline to induce a sense of speed and focus. * **Sound Effects (SFX):** * **Jump/Bounce:** A compressed "whoosh" or spring sound. * **Movement:** A subtle rolling hum when on the ground. * **Collect Coin:** A high-pitched, positive 8-bit "ding" or chime. * **Death/Crash:** A digital "glitch" or shattering glass sound. * **UI Click:** Soft, futuristic blips. ### 3. Gameplay Loop * **Core Mechanic:** The player controls a rolling ball on a suspended obstacle course. The ball has physics-based momentum (acceleration/deceleration). * **Objective:** Reach the end of the level (or survive as long as possible in endless mode) while collecting coins. * **Hazards:** * Falling off the edge of the platform (Physics check: y-position < threshold). * Touching "Black" platforms (Collision detection). * **Progression:** As the game continues, platforms become narrower, gaps become wider, and moving platforms are introduced. * **Win/Loss:** * **Win:** Reach the goal zone. * **Loss:** Instant respawn at the start (or last checkpoint) upon death. ### 4. Mobile Controls & Interaction * **Control Scheme (Touch):** * **Movement:** Implement a **Virtual Joystick** on the bottom-left of the screen for omnidirectional movement (X and Z axis). * **Jump:** A large, circular **"Jump" button** on the bottom-right of the screen. * **Orientation:** Force **Landscape Mode** for a wider view of upcoming obstacles. * **Camera:** A smooth "Follow Camera" that trails behind and slightly above the ball. It should have a slight lag (lerp) to feel dynamic but keep the player centered. * **UI Layout:** * **Pause Button:** Top-right corner (min size 44x44px). * **Score/Coin Count:** Top-left corner (large, readable font). * **Game Over Screen:** A centered modal overlay with big "Restart" and "Menu" buttons. * **Feedback:** Trigger `navigator.vibrate(20)` on collecting coins and a longer vibration `navigator.vibrate(200)` on death (if supported). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Leap and Avoid 2 is a captivating platform adventure that combines physics-based gameplay with strategic thinking. In this thrilling sequel, you control a nimble white ball as it journeys through treacherous caves and futuristic high-tech laboratories. The game challenges your reflexes and decision-making skills as you navigate complex environments filled with both opportunities and dangers.

This free browser-based game offers an immersive experience where every jump and movement matters. Your objective is simple yet challenging: guide your ball safely through each level while collecting valuable coins and avoiding deadly obstacles that could end your journey instantly.

Core Features

Dynamic Physics-Based Gameplay

Experience realistic ball physics as you navigate through intricate level designs. The white ball responds naturally to momentum, gravity, and surface interactions, creating an authentic and satisfying movement experience.

Strategic Platform Navigation

Master the art of platform selection as you distinguish between safe white platforms and deadly black ones. Each level presents unique challenges that require careful planning and quick reflexes to overcome.

Coin Collection System

Discover hidden paths and secret areas brimming with valuable coins. These collectibles serve as your currency for purchasing essential upgrades and enhancements.

Progressive Upgrade System

Use your hard-earned coins to unlock powerful upgrades including: - Protective Shields : Guard against dangerous obstacles - Speed Boosts : Navigate levels faster and more efficiently - Special Abilities : Unlock unique powers to overcome challenging sections

Diverse Environments

Explore two distinct world types: - Mysterious Caves : Navigate through dark, winding passages filled with natural obstacles - High-Tech Labs : Traverse futuristic facilities with advanced technological challenges

Gameplay Mechanics

The core gameplay revolves around precision movement and strategic thinking. As you control the white ball, you must carefully choose your path through each level. White platforms provide safety and support, while black platforms spell instant danger - touching them will end your current attempt.

Each level is designed as a puzzle that requires both skill and strategy to solve. You'll need to identify the safest route while maximizing coin collection opportunities. Hidden paths often contain the most valuable rewards, encouraging exploration and experimentation.

Controls Guide

The game features intuitive controls designed for both keyboard and mouse interaction:

  • Movement : Use Arrow Keys (Left/Right) or A/D keys to move your ball horizontally
  • Restart : Press R to quickly restart the current level
  • Pause : Press P to pause the game and take a strategic break
  • UI Interaction : Use Left Mouse Button to navigate menus and interact with game interface

These simple yet responsive controls ensure that players of all skill levels can enjoy the game while maintaining the precision needed for advanced gameplay.

Why Play Leap and Avoid 2

This game offers the perfect blend of accessibility and challenge. Whether you're a casual player looking for quick entertainment or a dedicated gamer seeking to master every level and top the leaderboards, Leap and Avoid 2 delivers a satisfying experience.

The combination of physics-based movement, strategic planning, and progressive upgrades creates a gameplay loop that remains engaging across multiple play sessions. Each successful navigation through a challenging section provides a genuine sense of accomplishment, while the upgrade system ensures continuous progression and new gameplay possibilities.

The game's free-to-play nature means you can dive into the adventure immediately without any barriers, making it perfect for quick gaming sessions or extended play periods.

Frequently Asked Questions (FAQ)