Ball Blast - Cannon Shooting Game

Seele01-Flash
By
Ball Blast is an addictive hypercasual cannon shooting game where you blast numbered balls while avoiding falling objects. Test your reflexes and aim for the highest score in this simple yet challenging arcade experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Ball Blast". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D aesthetic (3D objects constrained to a 2D plane). Use a bright, "Hypercasual" color palette with high contrast between the background (soft blue gradient or low-poly mountains) and the enemies (neon or bright primary colors). * **Player Asset:** A stylized Cannon composed of primitive shapes (cylinders for the barrel, distinct base/wheels). It acts as the anchor at the bottom center of the screen. * **Enemy Assets:** Spheres representing "Falling Rocks/Balls". Each sphere must dynamically render a **text texture** on its surface showing its current HP number. * **Visual Feedback:** When a ball is hit, it should flash white briefly. * **Particles:** Implement a simple particle system (instanced meshes for performance) for muzzle flashes and explosion debris when balls are destroyed. * **Performance:** Use an **Orthographic Camera** to maintain strictly 2D gameplay perspective. Minimize draw calls by merging geometries where possible. Use simple Lambert or Phong materials; avoid expensive real-time shadows. ### 2. Audio Requirements * **BGM:** A fast-paced, looping "Synth-pop" or "Arcade" style track. It should be energetic to maintain player engagement but not repetitive enough to be annoying. * **Sound Effects (SFX):** * **Shooting:** A rapid, rhythmic "thump-thump-thump" (satisfying, low-end focused). * **Impact:** A soft "tick" sound when a bullet hits a ball. * **Explosion:** A "pop" or "shatter" sound when a ball reaches 0 HP. * **Game Over:** A descending slide whistle or a "crunch" sound followed by silence. * **Coin Collect:** A high-pitched, positive chime. ### 3. Gameplay Loop * **Core Mechanic:** The player controls a cannon at the bottom of the screen. The cannon **automatically fires** a stream of bullets upwards whenever the player is touching the screen. * **Enemy Logic:** * Numbered balls spawn from the top/sides and bounce around the screen using simple gravity physics. * **Splitting Mechanic:** When a large ball (e.g., HP 50) is destroyed, it spawns two smaller balls (e.g., HP 25 each) that bounce in opposite directions. Smallest balls disappear upon destruction. * Balls bounce off the left, right, and top screen edges, and the floor. * **Win/Loss:** * **Loss:** If any ball collides with the player's cannon, the game ends immediately. * **Score:** Score increases based on the damage dealt or the "value" of the destroyed balls. * **Progression:** As time passes, newly spawned balls have higher HP numbers. ### 4. Mobile Controls & Interaction * **Orientation:** Strictly **Portrait Mode** (Vertical). * **Control Scheme:** 1-Finger "Drag to Move & Shoot". * **Touch Start:** Cannon begins firing. * **Touch Move (Drag):** The cannon follows the player's finger horizontally (X-axis only). Movement must be 1:1 and responsive. * **Touch End:** The game pauses or slows down time (Slow-mo effect), and the cannon stops firing. * **Responsiveness:** * Ensure the "hitbox" of the cannon is slightly smaller than its visual model to be forgiving to the player. * Add **Screen Shake** (slight camera jitter) when a large ball is destroyed to provide impact feedback. * If the device supports `navigator.vibrate`, trigger a short vibration (haptic feedback) on Game Over. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Ball Blast

Ball Blast is a thrilling hypercasual arcade game that combines precision shooting with fast-paced action. Armed with a powerful cannon, your mission is to shoot at numbered shapes until they completely explode, all while dodging the dangerous falling debris. This deceptively simple game offers endless entertainment as you strive to beat your previous high scores.

The game features clean 2D graphics with a colorful, cartoonish art style that makes it appealing to players of all ages. The mountain landscape background creates a pleasant visual environment while keeping the focus on the intense cannon action.

Core Features

Explosive Chain Reactions

The core gameplay revolves around shooting numbered balls that break apart into smaller pieces when hit. Each numbered shape requires multiple hits corresponding to its number before it's completely destroyed. This creates exciting chain reactions as larger shapes explode into smaller, faster-moving fragments.

Dynamic Difficulty Progression

As you survive longer, more balls appear on screen simultaneously, creating increasingly chaotic scenarios. The challenge escalates naturally, testing your ability to prioritize targets while maintaining precise movement to avoid collisions.

Addictive Score Chase

Ball Blast is designed around the classic "easy to learn, hard to master" formula. Every session presents an opportunity to surpass your previous best score, creating that irresistible "one more try" feeling that defines great hypercasual games.

Instant Action

With no complex storylines or lengthy tutorials, you can jump straight into the action. The game's streamlined design ensures you're blasting balls within seconds of starting.

Gameplay Mechanics

Shooting Strategy

Your cannon automatically fires upward, but you control the horizontal movement and aiming direction. The key to success lies in strategic positioning - you need to find the sweet spot where you can hit targets effectively while maintaining an escape route.

Survival Elements

The falling balls pose a constant threat. When they hit your cannon, the game ends immediately. This creates intense moments where you must decide whether to go for a risky shot or prioritize survival by moving to safety.

Progressive Challenge

Larger numbered balls split into multiple smaller ones when destroyed, potentially creating more hazards. Managing these cascading effects becomes crucial as the screen fills with bouncing threats.

Operation Guide

Simple Controls

Ball Blast uses intuitive one-touch controls perfect for both desktop and mobile play:

  • Mouse Control (Desktop) : Drag left and right to move your cannon horizontally
  • Touch Control (Mobile) : Touch and drag on the screen to position your cannon
  • Auto-Fire : Your cannon shoots automatically, so focus on positioning and dodging

Gameplay Tips

  • Stay mobile - constant movement is key to survival
  • Target higher-numbered balls first to clear them before they become overwhelming
  • Watch for patterns in ball movement to predict safe zones
  • Don't get greedy - sometimes retreating is better than going for a risky shot

Why Play Ball Blast

Perfect for Quick Sessions

Ball Blast is ideal for short gaming breaks. Each session can last anywhere from 30 seconds to several minutes, making it perfect for filling spare moments throughout your day.

Universal Appeal

The game's simple mechanics make it accessible to players of all skill levels, while the escalating difficulty ensures even experienced gamers will find it challenging.

No Barriers to Entry

Completely free to play with no downloads required. Simply open your web browser on any device and start playing immediately.

Stress Relief

The satisfying sound effects and visual feedback of exploding balls provide excellent stress relief, while the focus required helps clear your mind of other concerns.

Cross-Platform Compatibility

Play seamlessly across desktop computers, tablets, and smartphones. Your muscle memory transfers perfectly between devices thanks to the consistent control scheme.

Frequently Asked Questions (FAQ)