Git Product home page Git Product logo

tiny-basketball's Introduction

tiny-basketball

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/

What to expect

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

Asset Credits

The favicon was generated using the following graphics from Twitter Twemoji:

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

tiny-basketball's People

Contributors

dtjanaka avatar advaithg avatar austinlaw8 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dtjanaka

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.