This repository contains all the files and assets for the Arch 3 challenge of Basecamp.
Pygame is a powerful library for the development of games with graphics. It is well documented and there are tons of examples and tutorials available on the internet. Team size is 2. For the challenge we recommend a multi-phase approach:
- Grasp the basics of pygame, experiment with It
- Build a basic racing game (oval circuit, car, steering)
- Add the opponent, pit stops and tires
- Add the score and round number
- Add more things you like
The goal of the game is to win from the computer car and/or to improve the high score
The player steers a racecar with his keyboard (arrow keys for example). The player plays against a car controlled by the program. Collisions and crashes decrease the speed and therefore the end score.
The basic layout of a circuit is an oval with a pit lane
The minimal game consists of:
- A car steered with keyboard
- A computer opponent (basic behavior)
- A track with pitlane
- Tire change (Hard, Medium, Soft)
The player has the possibility to enter the pitlane and change tires (this takes time of course). There are three versions: Soft, Medium and Hard:
Soft tires
These represent the fastest rubber, but are likely to wear out before the harder compounds do.Medium tires
This is the compromise compound. It's usually slower than the softs but faster than hards. And it should last longer than the softs, but not as long as hards!Hard tires
These provide the least grip, but are supposed to remain in working order the longest(A Hogeschool Rotterdam account with access to this file is required to open this link)
To run this project on your own PC, you will need install pygame as this is the library required for this project.
This can be done with the following command:
pip install pygame
after this you can directly start the game by running main.py
python3 main.py
for more information about pygame, Please go to the official pygame website: