Perfect Dunk - Basketball Shooting Game

Seele01-Flash
By
Perfect Dunk is an addictive basketball shooting game featuring realistic bounce physics and relaxing gameplay. Simply aim and shoot to score perfect baskets through intuitive mouse controls.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Perfect Dunk**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a stylized, "2.5D" aesthetic. Use 3D geometry but apply a clean, vector-art inspired shading (Toon Shader or Cell Shading) to mimic the flat illustration style of the source image. The overall palette should be vibrant orange (ball) against a dark, cool-toned background (grey/navy blue bricks) to make the gameplay elements pop on small screens. * **Key Assets:** * **The Ball:** A high-quality basketball sphere with clear black groove lines. It needs a distinct orange glow or "trail" effect when moving fast to emphasize speed. * **The Hoop:** A metallic rim with a dynamic net cloth simulation (using simple spring physics or vertex displacement) that reacts satisfyingly when the ball passes through ("swish" effect). * **Background:** A dark, brick-patterned wall. To add depth, use a subtle parallax effect or dynamic lighting where the bricks are slightly lit by the ball's position. * **Visual Feedback:** Bright particle explosions (confetti or sparks) and floating text (e.g., "PERFECT!", "SWISH!") appear when a basket is made without touching the rim. * **Mobile Optimization:** Use simple geometries for the environment. Limit dynamic lights to one main source and use baked shadows where possible. Ensure the trail renderer is performant. ### 2. Audio Requirements * **Background Music (BGM):** An upbeat, Lo-Fi Hip Hop beat or urban funk track. It should be rhythmic and "cool" but repetitive enough to be relaxing and not distracting. * **Sound Effects (SFX):** * **Aiming:** A subtle, rising pitch or tension sound (like a rubber band stretching) while the player holds and drags. * **Shoot:** A sharp "whoosh" sound upon release. * **Impact:** Different sounds for hitting the backboard (hard plastic thud), the rim (metallic clang), and the net (satisfying "swish" cloth sound). * **Success:** An arcade-style chime or crowd cheer for a perfect shot. ### 3. Gameplay Loop * **Core Mechanic:** The game is an endless high-score runner. The hoop moves to random positions (height/distance) after every successful shot. * **Physics:** Implement realistic 2D physics (using Matter.js or Cannon.js logic confined to XY plane). The ball must have bounciness allowing for "bank shots" off the wall or backboard. * **Scoring System:** * +1 point for a standard basket. * +2 or +3 points for a "Swish" (not touching the rim). * **Combo System:** If the player gets consecutive swishes, the ball lights up (fire effect) and the score multiplier increases (x2, x3, x4). Missing a shot resets the combo and ends the game (or costs a "life"). * **Challenge Curve:** As the score increases, the hoop starts moving slightly (sliding up/down or left/right), or obstacles appear between the player and the hoop. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Portrait Mode** (Vertical) is mandatory to allow for one-handed play. * **Control Scheme (Slingshot Mechanic):** * **Input:** The player touches anywhere on the screen and drags backward to aim. * **Visual Guide:** Display a dotted "trajectory line" (prediction arc) showing where the ball will fly based on the current drag angle and power. This line helps users aim on small screens. * **Action:** Releasing the finger launches the ball. * **Haptic Feedback:** Trigger a short, crisp vibration when the ball hits the rim, and a longer, rewarding vibration when a "Perfect" shot is scored. * **UI Layout:** * Score displayed large and clear at the top center. * A "Restart" button that is large (at least 60x60px) and placed in the "thumb zone" (bottom half of the screen) upon Game Over. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Perfect Dunk is a captivating sports game that brings the excitement of basketball shooting to your browser. This free online game combines realistic bounce physics with addictive gameplay mechanics, making it the perfect choice for basketball enthusiasts and casual gamers alike. The game's intuitive design focuses purely on the satisfying experience of shooting hoops, without complicated rules or time pressure.

Core Features

Realistic Physics Engine

Perfect Dunk features an advanced physics system that accurately simulates basketball bouncing, trajectory, and rim interactions. Every shot feels authentic, with the ball responding naturally to your aim and power adjustments.

Relaxing Gameplay Experience

Unlike high-pressure basketball games, Perfect Dunk offers a zen-like shooting experience. There's no shot clock, no opponents - just you, the ball, and the hoop. This makes it perfect for stress relief and casual gaming sessions.

Chain Combos and Special Shots

Master the art of consecutive shots to build impressive combo streaks. The game rewards consistency and skill with bonus points for multiple successful shots in a row.

Wall Bounce Mechanics

Utilize the court walls strategically to create amazing trick shots. Bouncing the ball off walls adds an extra layer of creativity and challenge to your shooting strategy.

Score Competition

Compete with friends and challenge them to beat your high score. Share your achievements and see who can become the ultimate Perfect Dunk champion.

Game Mechanics

Simple Yet Engaging Controls

The game uses an intuitive mouse-based control system that's easy to learn but challenging to master. Hold, aim, and release - it's that simple, yet offers endless possibilities for improvement.

Progressive Difficulty

While the controls remain consistent, players naturally face increasing challenges as they attempt more complex shots and longer combo streaks.

Operation Guide

Basic Controls: - Hold Left Mouse Button : Prepare your shot and enter aiming mode - Move Mouse Cursor : Adjust your aim direction and power - Release Mouse Button : Execute the shot

Pro Tips: - Start with simple, straight shots to get familiar with the physics - Experiment with different power levels by varying how far you move the cursor - Use wall bounces for creative scoring opportunities - Focus on consistency to build impressive combo streaks - Practice different angles to improve your overall accuracy

Why Play Perfect Dunk

Perfect for All Skill Levels : Whether you're a basketball fan or just looking for a relaxing game, Perfect Dunk accommodates all players with its scalable difficulty.

No Download Required : Play instantly in your browser without any installations or downloads. Perfect for quick gaming sessions during breaks.

Stress Relief : The game's relaxing nature makes it an excellent choice for unwinding after a busy day. The satisfaction of perfect shots provides instant gratification.

Competitive Element : Challenge friends and family to beat your scores, adding a social competitive aspect to the single-player experience.

Cross-Platform Compatibility : Play seamlessly across different devices and browsers, ensuring you can enjoy the game anywhere.

Completely Free : Enjoy the full gaming experience without any cost or hidden fees.

Frequently Asked Questions (FAQ)