Inspiration

Ryan Swift (or TNR) from the MLH team had jokingly shared an idea for a game having a moving space bar that resumes music

What it does

The project contains a graphical user interface in which there is a black box (supposed to look like a space bar) with which the player interacts to pause or play the music provided the music is within the same directory as the python file.

How I built it

I was able to build this project with the help of python and python libraries such as pygame, DateTime, and time modules.

Challenges I ran into

Upon running it for the first 20 times I had faced numerous bugs with the game such as false positives on the hitbox of the rectangular box, background (blit) function orders which had initially messed up the foreground and background of the game and a bug where the box would go out of the window and completely disappear.

Accomplishments that we're proud of

Despite the number of bugs I had faced in the making of this short project I was able to overcome most if not all!

What we learned

Learnt how to use mouse input for pygame and various functions of the rectangular class from pygame module

What's next for Hit The Bar

The main priority for the game as of now would be to create a restart button & make the game more responsive to user interactions.

Built With

Share this project:

Updates