Skip to content

Pacifique5/Street-Dunk-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ€ Street Dunk Challenge

An immersive mobile basketball arcade game built with React Native and Expo. Perform high-flying dunks, smooth layups, and precision shots across a dynamic street basketball court.

Street Dunk Challenge React Native Expo License

๐ŸŽฎ Game Features

  • Intuitive Controls: Simple left/right movement with tap/long-press actions
  • Realistic Animations: Smooth player movements with dribbling, dunking, layup, and shooting animations
  • Dynamic Gameplay: Auto-dribbling system with ball physics and realistic trajectories
  • Combo System: Build combos with successful shots to increase your score multiplier
  • Multiple Shot Types:
    • ๐Ÿ”ฅ Dunks (50+ points) - Epic 360ยฐ spins with power aura
    • ๐Ÿ€ Layups (30+ points) - Graceful close-range shots
    • ๐ŸŽฏ 2-Pointers & 3-Pointers (20-30 points) - Distance-based shooting
  • Landscape Mode: Optimized for horizontal gameplay
  • Beautiful Court Design: Vibrant orange court with professional basketball markings

๐Ÿ“ฑ Screenshots

Coming soon - Add your gameplay screenshots here

๐Ÿš€ Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Expo Go app on your mobile device
  • For iOS: macOS with Xcode
  • For Android: Android Studio

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/street-dunk-challenge.git
cd street-dunk-challenge
  1. Navigate to the project directory:
cd StreetDunkExpo
  1. Install dependencies:
npm install
  1. Start the development server:
npx expo start
  1. Scan the QR code with:
    • iOS: Camera app
    • Android: Expo Go app

๐ŸŽฏ How to Play

Controls

  • โฌ…๏ธ Left Arrow: Move player left
  • โžก๏ธ Right Arrow: Move player right
  • โฌ†๏ธ Up Arrow (Press): Dunk (near hoop) or Shoot (away from hoop)
  • โฌ†๏ธ Up Arrow (Long Press): Layup (near hoop)

Gameplay Tips

  • Move close to the hoop for guaranteed dunks and layups
  • Build combos by making consecutive successful shots
  • Distance affects shooting accuracy - get closer for better chances
  • Combo multiplier increases points for each successful shot

๐Ÿ› ๏ธ Tech Stack

  • Frontend: React Native
  • Framework: Expo SDK 54
  • Graphics: React Native SVG
  • Animations: React Native Animated API
  • Language: JavaScript (ES6+)

๐Ÿ“ฆ Project Structure

StreetDunkExpo/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ Ball.js          # Basketball physics and animations
โ”‚   โ”‚   โ”œโ”€โ”€ Court.js         # Court rendering and design
โ”‚   โ”‚   โ”œโ”€โ”€ GameControls.js  # Input controls
โ”‚   โ”‚   โ”œโ”€โ”€ Player.js        # Player character and animations
โ”‚   โ”‚   โ””โ”€โ”€ ScoreBoard.js    # Score display
โ”‚   โ””โ”€โ”€ screens/
โ”‚       โ””โ”€โ”€ GameScreen.js    # Main game logic
โ”œโ”€โ”€ App.js                   # App entry point
โ”œโ”€โ”€ app.json                 # Expo configuration
โ””โ”€โ”€ package.json             # Dependencies

๐ŸŽจ Features in Detail

Player Animations

  • Running: Dynamic leg movement with speed lines
  • Dribbling: Realistic ball bouncing with body lean
  • Dunking: 360ยฐ spin with explosive jump and power aura
  • Layup: Smooth arc with arm extension
  • Shooting: Proper shooting form with follow-through

Ball Physics

  • Dribbling: Realistic bounce timing and height
  • Trajectories: Different arcs for dunks, layups, and shots
  • Spinning: Proper rotation based on action type
  • Shadows: Dynamic shadow effects for depth

Scoring System

  • Base Points:
    • Dunk: 50 points
    • Layup: 30 points
    • 3-Pointer: 30 points
    • 2-Pointer: 20 points
  • Combo Multiplier: Increases with consecutive successful shots
  • Accuracy: Distance-based with combo bonuses

๐Ÿ”ง Configuration

The game is configured for landscape orientation. To modify settings, edit app.json:

{
  "expo": {
    "orientation": "landscape",
    "ios": {
      "orientation": "landscape"
    },
    "android": {
      "orientation": "landscape"
    }
  }
}

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ Future Enhancements

  • Multiplayer mode
  • Character customization
  • Multiple court themes
  • Power-ups and special moves
  • Leaderboards and achievements
  • Sound effects and background music
  • Tournament mode
  • Trick shot challenges

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Author

Your Name

๐Ÿ™ Acknowledgments

  • Inspired by classic basketball arcade games
  • Built with React Native and Expo
  • Special thanks to the React Native community

๐Ÿ“ž Support

For support, email your-email@example.com or open an issue in the repository.


Made with โค๏ธ and ๐Ÿ€

About

๐Ÿ€ Street Dunk Challenge - An immersive mobile basketball arcade game with realistic animations, dynamic gameplay, and combo scoring system. Built with React Native & Expo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors