Ball Blaster - Arcade Cannon Defense Game

Seele01-Flash
By
Ball Blaster is an intense arcade defense game where you control powerful cannons to destroy incoming balls and protect your base. Upgrade your weapons and survive endless waves of colorful ball attacks.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Ball Blaster". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Hyper-casual, Low-poly 3D aesthetics. Use a vibrant, high-saturation color palette (Sky Blue background `#87CEEB`, Creamy White floor, Bright Orange/Green/Purple striped balls). * **Camera**: Fixed perspective, slightly elevated behind the cannon (Third-Person Chase view), focusing on the track ahead. * **Core Models**: * **Player (Cannon)**: A chunky, cartoonish cannon mounted on a wooden cart with wheels. Use primitive shapes (Cylinders for the barrel/wheels, Box for the chassis) to minimize draw calls. * **Enemies (Balls)**: Large spheres with distinct striped textures. They should display a floating number on top of them representing their HP. When damaged, the mesh should flash white. * **Environment**: An infinite scrolling track with yellow guardrails on the sides to define the play area. * **Effects**: Simple particle explosions (using `THREE.Points`) when a ball is destroyed. A muzzle flash effect at the cannon tip. * **Performance**: Use Geometry Instancing for the projectiles (bullets) and simple geometries for the balls to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **BGM**: An energetic, looping arcade-style electronic track (Synth-pop) that drives the pace of the game. * **Sound Effects (SFX)**: * *Shooting*: A rapid, soft "thump" or "pop" sound (not annoying, as it loops frequently). * *Impact*: A "crunch" or "crack" sound when bullets hit the balls. * *Destruction*: A satisfying shattering sound when a ball is fully destroyed. * *Upgrade/Power-up*: A rising chime sound. ### 3. Gameplay Loop * **Core Mechanic**: The player controls a cannon that moves horizontally at the bottom of the screen. Giant balls roll down the track from top to bottom. * **Combat Logic**: * The cannon **auto-fires** continuously while the screen is touched. * Balls have Health Points (HP). Each bullet reduces HP by 1. * Large balls break into smaller balls upon destruction (optional) or simply explode into currency/score. * **Lose Condition**: If a ball hits the cannon or crosses the bottom line (depending on strictness), the game ends. * **Progression**: As time passes, balls spawn with higher HP and roll slightly faster. Include a simple "Level Up" or "Upgrade" button in the UI between rounds to increase Fire Rate or Damage. ### 4. Mobile Controls & Interaction * **Touch Scheme**: **1-Finger Drag (Slide)**. The player touches anywhere on the screen and drags Left/Right to strafe the cannon. * **Orientation**: **Landscape Mode** (to match the provided screenshot perspective), but code should handle window resizing responsively. * **Shooting**: Auto-shoot active ONLY when the user is touching/dragging the screen. Lifting the finger pauses the game or stops shooting. * **Haptic Feedback**: Trigger `navigator.vibrate(5)` on bullet impact and a stronger vibration `navigator.vibrate(20)` when a ball is destroyed or the player is hit. * **UI Layout**: * Score displayed at the top center. * Upgrade buttons (if any) should be large (min 44px height) and placed at the sides or in a "Game Over" modal, away from the central play area to prevent accidental clicks during gameplay. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Ball Blaster

Ball Blaster is an action-packed arcade defense game that challenges players to protect their base from relentless waves of incoming balls. Armed with a powerful cannon, you must aim precisely and shoot rapidly to destroy the colorful spheres before they overwhelm your defenses. This 3D arcade experience combines classic shooting mechanics with modern upgrade systems, creating an addictive gameplay loop that keeps players coming back for more.

Core Features

Intense Cannon Combat

Take control of a mighty cannon and engage in fast-paced ball-blasting action. Each shot counts as waves of balls approach your base from multiple directions. The game features smooth 3D graphics with vibrant, colorful balls that create an engaging visual spectacle.

Progressive Upgrade System

Enhance your defensive capabilities through a comprehensive upgrade system: - Cannon Strength : Increase damage output to destroy balls faster - Fire Rate : Boost shooting speed for rapid-fire destruction - Power Enhancement : Unlock special abilities and explosive shots - Range Extension : Expand your cannon's effective shooting distance

Endless Wave Survival

Face increasingly challenging waves of balls with varying speeds, sizes, and movement patterns. Each wave brings new challenges that test your reflexes, accuracy, and strategic thinking. Can you survive the endless onslaught?

Multi-Platform Accessibility

Enjoy seamless gameplay across devices: - Web Browser : Play instantly on desktop and mobile browsers - Android Support : Download for on-the-go gaming - Cross-Platform Progress : Continue your game anywhere

Gameplay Mechanics

Ball Blaster combines simple controls with deep strategic elements. Players must balance offensive firepower with defensive positioning while managing limited resources. The game rewards both quick reflexes and tactical planning, making each session unique and engaging.

Dynamic Ball Physics

Experience realistic ball movement and collision detection that adds depth to the shooting mechanics. Different ball types require different strategies - some are fast and agile, others are large and tough to destroy.

Operation Guide

Master the controls to become a ball-blasting champion:

  • Movement : Use WASD keys or arrow keys to position your cannon
  • Aiming : Move your mouse to aim at incoming balls
  • Shooting : Click and drag the left mouse button to fire
  • Mobile Controls : Touch and drag to aim and shoot on mobile devices

The intuitive control scheme makes Ball Blaster accessible to players of all skill levels while providing enough depth for competitive play.

Why Play Ball Blaster

Ball Blaster offers the perfect blend of casual accessibility and hardcore challenge. Whether you have 5 minutes or 5 hours, the game provides instant entertainment with its pick-up-and-play design. The progression system ensures long-term engagement, while the colorful graphics and satisfying destruction mechanics create an addictive gaming experience.

Ideal for arcade game enthusiasts, casual gamers, and anyone seeking stress-relieving gameplay, Ball Blaster delivers non-stop action without complex storylines or lengthy tutorials. Jump in, start blasting, and see how long you can survive the ball invasion!

Frequently Asked Questions (FAQ)