A basketball game using C++ in OpenFrameworks.
How to install and run:
-
Download OpenFrameworks: https://openframeworks.cc
-
Download this repository within the
[openframeworks directory]/apps/myApps/
-
Download ofxBox2D and ofxProgressBar into
[openframeworks directory]/addons/
-
Using the Project Generator, navigate to the repository, and click on "Update"
Change the number of consecutive shots needed before leveling up in globals.h.
- to_level_up: Default set to 3 shots to be made in a row per level.
-
Pressing and holding the space bar will charge up the power used on each shot. The power is displayed in the progress bar.
-
Releasing the space bar will release the shot.
-
Making a certain amount of consecutive shots in a row will move you on to the next level.
-
Missing a shot will move you back to level one and reset your score.
All code follows the Google C++ Style Guide.