Python Games

What is Pygame?

Put simply, Pygame is a Python module with methods (functions) used to create interactive games and programs.

MU Editor

Try the MU Editor to learn more about Python in a variety of contexts (coding Pygame games, using a microbit, and more!)

Mu is a Python code editor for beginner programmers based on extensive feedback given by teachers and learners.

Download MU Editor


Installing Pygame

Pygame is a tool we can use to create games in the Python language. Follow the slides (right) very carefully to install all the files necessary to use Pygame.

Note: You should be using mac0S Mojave 10.14 or later.

CC - G.1 - Pygame
CC - G.2 - Project Management

Project Management

Managing your files might seem a bit like cleaning your room, but let's be honest, it always feels better when it is clean and organized. The same holds true for your programming projects. Also, your programs won't run properly.

To start, we need to understand and put into practice saving our files in a way that Python will know how to run our games.

Learning Targets:

  • creating a project directory (folder)

  • creating project sub-directories

  • saving needed files into proper directories

Pygame Tutorials - Tech With Tim

There are loads of tutorials available online where you can learn more about Python and Pygame.

Start with this tutorial playlist by Tech With Tim. It will provide you with the fundamental concepts and skills to begin creating games.

Click here for more game development tutorials.

Loading Images

Understand the basics of why and how we organize files for retrieval in our programs. This video demonstrates using a folder structure for loading images in a Pygame program based on the Tech With Tim tutorials above.