Skip to Content
Game Development with PyGame: Write Your Own Games, Simulations, and Demonstrations with Python
on-demand course

Game Development with PyGame: Write Your Own Games, Simulations, and Demonstrations with Python

with Coen de Groot
December 2019
Intermediate
1h 5m
English
Apress
Closed Captioning available in English

Overview

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.

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.

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




Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Multi-Platform Graphics Programming with Kivy: Basic Analytical Programming for 2D, 3D, and Stereoscopic Design

Multi-Platform Graphics Programming with Kivy: Basic Analytical Programming for 2D, 3D, and Stereoscopic Design

Moisés Cywiak, David Cywiak

Publisher Resources

ISBN: 9781484256619