Part 2 Introduction, Class Files, and Glossary

About this tutorial

This tutorial is meant to get you started with the basics of PyGame, though this is not an introduction to programming tutorial; you should have had some programming basics prior. Even without, you might be able to get by with some simple game development, but it is important to eventually understand the concepts behind control flow, functions, and classes.

If you’ve had another language like C++, Java, or C# before, Python has a lot of the same features, but it is a different looking language.

I’m writing this tutorial because I find PyGame to be a pretty good tool to use to program small projects pretty quickly (though not as quickly as with some type of engine). The first thing you need to know is how to load and use multimedia assets (graphics, audio, fonts, etc.) and then a lot of the rest of game development is about designing and implementing the game logic.


Class files

The files for this tutorial is hosted on GitHub here: The repository contains example code as well as graphics  and audio you can use while you’re following this tutorial. You can download all the code as a zip file, or clone it to your desktop using Git.





<< Previous: Setting up Python and PyGame | Next: Importing PyGame and creating the window >>

Back to main page

Download this lesson’s source code at

Print Friendly