Bouncy Dunks - Basketball Skill Game

Seele01-Flash
By
Bouncy Dunks is an addictive basketball skill game where you control paddles to bounce a basketball into the hoop. Collect stars for bonus points and challenge yourself to beat your high score in this engaging arcade experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Bouncy Dunks**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D Arcade aesthetic using an **Orthographic Camera** to mimic the flat, vector-art style of the reference image but with 3D depth. Use **Toon Shading (Cell Shading)** or `MeshBasicMaterial` with black outlines (using the inverted hull method) to replicate the "sticker" look of the basketball and hoop. * **Color Palette**: Deep blue/charcoal background (`#222831`) to make elements pop. Bright orange (`#FF9F43`) for the ball, vibrant red (`#EE5253`) for the hoop rim, and pure white for nets and UI. * **Key Assets**: * **The Ball**: A simplified sphere with a basketball texture map. It must render a **Motion Trail** (ribbon trail) behind it to visualize the arc, similar to the grey swoosh in the screenshot. * **The Paddle**: A rounded capsule or pill-shaped platform at the bottom. * **The Hoop**: Composed of a Backboard (BoxGeometry), Rim (TorusGeometry), and Net (a tapered open cylinder with a white grid texture). * **Collectibles**: Spinning Gold Stars (low-poly 5-point stars) that float in random positions. * **Mobile Optimization**: Use low-poly geometries. Limit dynamic lights; prefer baked ambient light or basic materials to ensure 60 FPS on mobile browsers. ### 2. Audio Requirements * **BGM**: A bouncy, upbeat, and loopable "Arcade/Funk" track. It should be energetic but not distracting. * **Sound Effects (SFX)**: * **Paddle Hit**: A satisfying, springy "Boing" or distinct rubber impact sound. * **Net Swish**: A soft "cloth friction" sound for a clean goal. * **Rim Hit**: A metallic "Clank" if the ball hits the red ring. * **Star Collect**: A high-pitched, magical "Ding" or "Chime". * **Game Over**: A descending whistle or low-tone buzzer. ### 3. Gameplay Loop * **Physics Engine**: Use a lightweight physics engine (like **Cannon.js** or a simple custom verlet integration) focusing on high restitution (bounciness). Gravity should be strong enough to make the ball drop quickly. * **Core Mechanic**: The player controls the horizontal position of the paddle. The ball drops from the top. The player must position the paddle so the ball bounces off it at the correct angle to enter the hoop. * **Scoring**: * +1 Point for every successful basket. * +5 Points for collecting a Star (trigger collision). * After a score, the hoop should **reposition** to a new random location (left, right, or higher/lower) to increase difficulty. * **Fail Condition**: If the ball falls past the paddle (Y-axis < Paddle Y), the player loses a "Life" (Total 3 Lives). Game Over when lives reach 0. ### 4. Mobile Controls & Interaction * **Input Scheme**: **1:1 Horizontal Drag**. The paddle immediately tracks the user's finger/mouse X-position. * Implement `touchmove` and `pointermove` event listeners. * Use Raycaster to map screen touch coordinates to the 3D world plane. * **Screen Orientation**: Portrait Mode locked (preferred for one-handed play). * **Haptic Feedback**: Trigger `navigator.vibrate(10)` on paddle collision and `navigator.vibrate([20, 50, 20])` on scoring a basket to provide tactile feel. * **UI/UX**: * Score displayed prominently at the top center. * "Lives" represented by heart icons in the top corner. * A "Restart" button overlay that appears on Game Over (minimum touch target 44x44px). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Bouncy Dunks is a captivating skill-based basketball game that combines precision, timing, and quick reflexes. This free online arcade game challenges players to master the art of bouncing a basketball using movable paddles, creating an innovative twist on traditional basketball gameplay. The game's simple yet addictive mechanics make it perfect for players of all ages looking for a quick gaming session or extended play.

Core Features

Innovative Paddle Mechanics

Unlike traditional basketball games, Bouncy Dunks introduces a unique paddle-based control system. You'll use movable paddles positioned at the bottom of the screen to bounce the basketball upward, requiring precise timing and spatial awareness to successfully score.

Star Collection System

Throughout gameplay, stars will occasionally appear on screen. Collecting these valuable items awards you 5 bonus points each, adding an extra layer of strategy as you decide whether to risk your current streak for additional points.

Progressive Difficulty

As you continue playing, the game becomes increasingly challenging, testing your reflexes and coordination. The physics-based gameplay ensures that each bounce feels realistic and responsive.

High Score Challenge

Compete against yourself and others by striving to achieve the highest possible score. The game tracks your best performance, encouraging repeated play to improve your skills.

Gameplay Mechanics

The objective is straightforward yet challenging: keep the basketball bouncing using the paddles and successfully shoot it through the basketball hoop. The game requires:

  • Precision Control : Master the paddle movement to control ball trajectory
  • Timing : Perfect your timing to ensure successful shots
  • Risk Management : Decide when to go for star collection versus playing it safe
  • Consistency : Maintain focus to avoid losing lives

Life System

Be careful not to let the basketball fall through the gap at the bottom of the screen - doing so will cost you a life. This adds tension and requires constant attention to ball positioning.

Controls Guide

Desktop Players: - Hold down the left mouse button and drag to move the paddle - Release to let the ball bounce naturally

Mobile Players: - Touch and drag your finger to control paddle position - Lift your finger to release control

The intuitive control scheme makes the game accessible across all devices while maintaining responsive gameplay.

Why Play Bouncy Dunks

Perfect for Short Gaming Sessions

Bouncy Dunks is ideal for quick gaming breaks. Each session can last from a few minutes to extended play periods, making it perfect for both casual gaming and serious skill development.

Completely Free Experience

Enjoy the full game experience without any cost. No downloads, installations, or in-app purchases required - simply open your browser and start playing immediately.

Cross-Platform Compatibility

Play seamlessly across desktop computers, tablets, and smartphones. The responsive design ensures optimal performance regardless of your device.

Social Competition

Share your high scores with friends and family to create friendly competition. Compare achievements and challenge others to beat your best performance.

Skill Development

Regular play helps improve hand-eye coordination, timing, and spatial awareness. The game provides excellent practice for developing precision and focus.

Game Categories

Bouncy Dunks fits into several popular gaming categories: - Skill Games : Requires developing precise control and timing - Arcade Games : Fast-paced, score-focused gameplay - Basketball Games : Sports-themed with basketball mechanics - Ball Games : Physics-based ball movement and control

Frequently Asked Questions (FAQ)