Basket Slam Dunk 2

Seele01-Flash
By
Basket Slam Dunk 2 is an addictive pixel-style basketball game that challenges your timing and precision. Master physics-based jumping mechanics to execute perfect slam dunks in this uniquely challenging sports experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Basket Slam Dunk 2". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **2.5D Aesthetic** (2D pixel art sprites placed in a 3D world). Use an `OrthographicCamera` to maintain the flat, retro pixel-art look seen in the reference image. * **Textures & Materials**: All textures must use `THREE.NearestFilter` for `minFilter` and `magFilter` to ensure crisp, non-blurry pixel art scaling. * **Character Model**: The player is a "Ragdoll-style" character consisting of a torso and head, sitting inside a **semi-circular bowl (hemisphere)** instead of having legs. This bowl is the primary physics collider. * **Environment**: * **Background**: A scrolling urban brick wall with colorful graffiti (e.g., stylized text like "HUNK"). * **Prop**: A pixel-art basketball hoop with a physics-reactive rim and a net (can be a simple animated sprite or cloth simulation). * **Lighting**: Flat ambient lighting to preserve the 2D art style, with dynamic shadows only directly beneath the player (blob shadow). * **Mobile Optimization**: Use a single texture atlas for all sprites to reduce draw calls. Limit particle counts for the confetti/dunk effects. ### 2. Audio Requirements * **BGM**: Upbeat, retro-style **Chiptune / Lo-fi Hip Hop** loop that evokes a street basketball vibe. * **Sound Effects (SFX)**: * **Charging**: A rising pitch synthesizer sound while holding the screen (indicating jump power). * **Jump**: A retro "Spring" or 8-bit "Jump" sound upon release. * **Dunk**: A heavy "Slam" sound mixed with a "Swish" net sound. * **Collision**: Wood/Rubber impact sounds when the bowl hits the floor or backboard. * **Crowd**: A sudden burst of cheering (pixelated noise) upon scoring. ### 3. Gameplay Loop * **Physics Engine**: Integrate a physics library (like **Cannon.js** or **Matter.js**) to handle the "wobbly" movement. The character's semi-circular base implies unstable balance. * **Core Mechanic**: 1. **Idle**: Player balances on the floor. 2. **Charging**: Player holds input; a power arrow/trajectory line appears, oscillating or growing in length. 3. **Launch**: Player releases input; physics impulse is applied to the bowl, launching the character towards the hoop. 4. **Dunking**: While in mid-air, a second tap rotates the character's arm downward to smash the ball. * **Scoring**: The ball must pass through the hoop trigger from top to bottom. * **Win/Loss**: * **Score**: +1 point for a dunk. * **Combo**: "Clean" entry without touching the rim = +2 points + fire particle effect. * **Fail**: If the character falls off the screen or misses the shot and lands flat, reset the position. ### 4. Mobile Controls & Interaction * **Touch Input Scheme (One-Handed)**: * **Touch Start (Hold)**: Begin charging jump power. Display a visual power bar or arrow next to the character. * **Touch End (Release)**: Execute the jump based on charged power. * **Tap (Mid-air)**: Trigger the "Dunk" animation/physics force to slam the ball down. * **Orientation**: **Landscape Mode** is preferred to see the distance between the player and the hoop. * **UI Layout**: * Scoreboard in the top center (large pixel font). * Pause button in the top right (hitbox size: 48x48px min). * **Haptic Feedback**: Trigger `navigator.vibrate(200)` on a successful dunk and `navigator.vibrate(50)` on rim collision. * **Camera Behavior**: The camera should smoothly follow the player's x-axis position but keep the hoop in view, possibly zooming out slightly during high jumps. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Basket Slam Dunk 2 is a captivating pixel-art basketball game that transforms the simple act of dunking into a thrilling physics-based challenge. This engaging sports game combines retro aesthetics with modern gameplay mechanics, creating an addictive experience that tests your timing, precision, and basketball skills.

The game features a charming pixel art style that brings back nostalgic gaming memories while delivering smooth, responsive gameplay. Every jump, every dunk, and every moment of airtime feels authentic thanks to the realistic physics engine that governs player movement and ball dynamics.

Core Features

Physics-Based Gameplay

The standout feature of Basket Slam Dunk 2 is its realistic physics system. Unlike simple arcade basketball games, every movement follows natural physics laws. Your player's weight, momentum, and jumping power all affect the trajectory and success of your dunks.

Challenging Mechanics

Success isn't guaranteed - this game rewards skill and practice. The physics-based controls mean that mastering the perfect dunk requires understanding timing, power adjustment, and spatial awareness. Each attempt teaches you something new about the game's mechanics.

Pixel Art Excellence

The beautiful pixel art style creates an immersive retro gaming atmosphere. Character animations are fluid and expressive, while the court environment is detailed and vibrant. The visual style perfectly complements the challenging gameplay.

Multiplayer Support

Compete against friends or other players online. The multiplayer mode adds a competitive edge to the dunking action, allowing you to showcase your skills against real opponents.

Gameplay Mechanics

The core gameplay revolves around mastering the art of the slam dunk through physics-based controls. Players must carefully time their jumps, adjust power levels, and account for momentum to successfully score. The game's difficulty comes from its realistic physics - there's no auto-aim or assistance, making every successful dunk feel genuinely earned.

The basketball court environment provides various challenges and obstacles that affect your dunking strategy. Wind resistance, gravity, and player positioning all play crucial roles in determining success or failure.

Control Guide

Mastering the controls is essential for success:

  • Power Adjustment : Hold the left mouse button to build up jumping power. The longer you hold, the more powerful your jump becomes
  • Jump Execution : Release the mouse button to launch your player into the air
  • Dunking Action : Press the left mouse button while airborne to attempt the slam dunk

The key to success lies in finding the perfect balance between jumping power and timing. Too little power and you won't reach the basket; too much and you might overshoot your target.

Why Play Basket Slam Dunk 2

This game offers a unique twist on traditional basketball games by focusing entirely on the most exciting aspect - slam dunking. The physics-based mechanics create a genuine sense of accomplishment when you nail that perfect dunk. Whether you're looking for a quick gaming session or extended play, the game's challenging nature keeps you coming back for more.

The pixel art style appeals to both retro gaming enthusiasts and modern players who appreciate quality visual design. The game strikes an excellent balance between being easy to learn but difficult to master, making it accessible to newcomers while providing depth for experienced players.

Perfect for basketball fans, physics game enthusiasts, and anyone who enjoys skillful, precision-based gameplay challenges.

Frequently Asked Questions (FAQ)