A basketball game built using tiny graphics!
To run locally, navigate to the folder containing these files and run python server.py
. The website will show up on localhost:8000
.
You can also find the game deployed online at tiny-basketball.netlify.app/
Upon loading the game, you will find the basketball court scene. The instruction on how to play are on a square in front of you. To start playing, you can press q
.
Once the game has started, you have 45 seconds to score as many points as possible!
To shoot, you can simply click in the direction you want. Once the game is over, you'll see your last score, your session's highest score, and the number of games you've played this session.
Pressing q
stops and restarts the game
Pressing p
pauses the movement of the backboard
Pressing t
toggles the music on and off
Pressing o
turns on overdrive mode when pressed during a game, which speeds the backboard up by 4x
The favicon was generated using the following graphics from Twitter Twemoji:
- Graphics Title: 1f3c0.svg
- Graphics Author: Copyright 2020 Twitter, Inc and other contributors (https://github.com/twitter/twemoji)
- Graphics Source: https://github.com/twitter/twemoji/blob/master/assets/svg/1f3c0.svg
- Graphics License: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Music from Uppbeat (free for Creators!):
Sunny: https://uppbeat.io/t/hartzmann/sunny
Overdrive: https://uppbeat.io/track/matrika/overdrive
Music from TheFatRat
Windfall: https://www.youtube.com/watch?v=jqkPqfOFmbY
Brick Wall texture - GamePigeon Basketball
Basketball texture - https://opengameart.org/content/basket-ball-texture