Try reloading this page, or reviewing your browser settings
In this video course, you’ll learn how to use PyGame, an easy-to-learn Python library, to create interactive experiences such as games, demonstrations, and exercises.
You’ll start with an overview of PyGame and see how to install it. Next, you’ll cover the basics of using programming with PyGame including creating drawing surfaces; the coordinate system and the Rect class to define the location and sizes of images and shapes; the different ways to represent colors; and how to respond to keys and mouse actions. Further, you will see the game loop, another key part of PyGame programming. You then look at examples of PyGame creations, and some of the best places to find images, sounds, and other resources, to help you kick start your own. You will also have access to step-by-step instructions for writing two different simple games.
Next, you’ll dive into the detail of using PyGame and will cover most of its core functionality. This starts with drawing shapes, such as rectangles, circles, and lines, which can all be surprisingly useful and make a great start for a wide variety of games and other interactive experiences. You will conclude by seeing how to use sound and music in PyGame, from quiet background music to lively explosions.
What You Will Learn
Use PyGame to develop games
Discover the core functionalities of PyGame
Work with the game loop
Add sound and music in PyGame
Who This Video is For
Intermediate to experienced Python programmers who want to create games and other interactive experiences. Passionate gamers who want to create their own games would find this course useful.
Make a strong start with PyGame by watching the video then access the accompanying example code as a basis for your own games or to confirm your understanding of the different features.
About The Author
Coen de Groot started programming as a teenager, studied it at university, and has over twenty years of professional experience. After all these years Coen still enjoys programming, especially creating digital versions of his favorite board games. He regularly teaches Python courses, up to advanced level, for a large international training company, and has written PyGame-based demonstrations for some of the courses
About this video
- Coen de Groot
- Online ISBN
- Total duration
- 1 hr 5 min
- Copyright information
- © Coen de Groot 2019
- Harrison Kinsley
- Will McGugan
- Will McGugan
- Alan Thorn
- Lee Stemkoski
Welcome to game development with PyGame. PyGame is a library for the popular and easy-to-learn Python programming language. It gives you a simple way to create games, demonstrations, and other interactive experiences.
My name is Coen de Groot. I am a freelance Python developer and trainer with many years’ experience I help my clients make better use of their data, give their customers a better experience, write better Python code, and more.
Professionally, I use PyGame to explain ideas in programming and mathematics. I’ve also taught PyGame at a European Python conference. Python and PyGame are woven into many parts of my personal life. To help me learn French, I’ve created a few games like this racing and typing game.
I love the thrill of creating something quickly, like an evening or a weekend at game design competitions. Here’s a game I created for PyWeek, which brings in my love of running and getting lost. I also enjoy board games and have created my own Python version of some of my favorite games.
This course will teach you the core parts of PyGame, giving you all the building blocks you need to bring your own ideas to life for fun, profit, or both. You will see me type the code and commands, for instance, to show images, shapes, and text, so you can copy it and adapt it to your own needs. I then run the code so you can see it in action and to understand exactly what it does.
Let’s get started with game development with PyGame.