Skip to content

Basketball Shooting Game is an interactive game where the player controls the direction of a ball thrown through a hoop using keyboard inputs. The game window displays a hoop, a ball, and the player's score.

Notifications You must be signed in to change notification settings

ulyssetresor13/Basketball-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Basketball Shooting Game

Basketball Shooting Game is an interactive game where the player controls the direction of a ball thrown through a hoop using keyboard inputs. The game window displays a hoop, a ball, and the player's score. The game implements midpoint algorithms for drawing lines and circles, along with functions for transforming and animating the ball's throw. The player can throw the ball in three different directions using the keyboard inputs, with the key to reset the game and another key for exiting the program. The score updates based on the success of the throws. The game combines graphical rendering, geometric transformations, and user input handling to create an engaging and interactive experience.

Keyboard Inputs for Throwing the ball:

  1. Press One for Left throw
  2. Press Two for Center throw
  3. Press Three for Right throw
  4. Press R for Reset
  • To add difficulty when you miss 3 consecutive times the game ends
  • When you miss the game displays "TRY AGAIN"
  • When you score the game displays "NICE JOB"

Tools & Framework Used:

  1. OPENGL
  2. Numpy

About

Basketball Shooting Game is an interactive game where the player controls the direction of a ball thrown through a hoop using keyboard inputs. The game window displays a hoop, a ball, and the player's score.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages