Inspiration

We chose to go with a racing game as when we were brainstorming we found that a racing game was the most versatile idea we had since there were many ways we would be able to implement a collaboration component to the game. Additionally, the idea of a racing game also allowed us to easily implement a hardware component to the project as this was something we were keen on doing.

What it does

The game we decided on creating is a racing game where two players collectively work on controlling a car. To control the vertical position of the car, a phidgets potentiometer slider is used, while to control the speed of the car the buttons on a phidgets controller are used, red to slow down the car and green to speed up the car. On the screen other cars are present as well, a collision between the user and these cars will result in the game ending.

How we built it

We used Pygame in Python to code our project since Python was a programming language that all members of our team were familiar with. Additionally, since we were provided with phidgets hardware we decided to implement these into the controls of our game.

Challenges we ran into

A major challenge that we ran into was the merging of two branches in Github. when merging two branches line indexation would not properly carry over resulting in syntax errors in our code.

Accomplishments that we're proud of

  • Implementing the phidgets hardware into our project
  • Creating code that would spawn in lane markers and other cars
  • Being able to use Git and Github to collaborate well

What we learned

From this project, our group became more familiar and experienced with using Github and Git commands when collaborating with others on projects. Additionally, we became more familiar with pygame and also learned about how we would be able to implement hardware in future coding projects.

What's next for Racing Game

We definitely have other ideas of what can be implemented in the game. For example, we would like to create a better scoring system in the game and possibly other different ways to control the car. We would also like to make the game more difficult for the user when they increase their speed, such as by increasing the size of the car and again reverting to the original size when the user chooses to slow down.

To Access Project in GitHub repo

Go to src folder and run the main.py file as this is the finished project

Built With

Share this project:

Updates