Build an overhead Python racing game
OUR EXPERT
Calvin Robinson is a former assistant principal and computer science teacher with a degree in computer games design and programming.
QUICK TIP
Have a play around with different colour schemes, and if you’re feeling particularly fancy try designing your own car. You can always edit our car in Gimp, rather than starting from scratch.
It’s handy to print commands to the console when developing and testing a game. However, don’t forget to comment out any print() lines afterwards – we don’t want to spam our player.
Consider building on the knowledge gained from this tutorial to implement a ‘Pause’ button. This would need to make use of PyGame’s text tool, a rectangle to display it and some buttons.
Over the past few issues we’ve taken a look at programming classic video games in Python. This issue we’re going to be developing a racing video game.
Racing games are a sub-genre of video games difficult to categories. Depending on the style of game, they could sit anywhere between arcade games with unrealistic physics, sports titles with realistic graphics, or simulations with hyper-realistic mechanics.
We’ll be using Python to develop our racing video game, because it’s
You’re reading a preview, subscribe to read more.
Start your free 30 days