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

Video description

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




Publisher resources

Download Example Code

Table of contents

  1. Overview 00:01:38
  2. Getting Started
    1. Installation 00:02:42
  3. Core PyGame Concepts
    1. Surfaces, Coordinate System 00:07:20
    2. Using Colors 00:01:43
    3. Game Loop and Key Events 00:04:13
  4. Your Own Game
    1. Examples and Inspiration 00:02:47
    2. Resources 00:02:34
  5. PyGame Functionality
    1. Drawing Shapes 00:10:30
    2. Fonts and Text 00:02:58
    3. Images 00:02:07
    4. Transformations 00:04:38
    5. Using the Mouse 00:04:28
    6. Sprites and Collisions 00:08:21
    7. Sounds 00:06:26
    8. Music 00:02:08
  6. Conclusion
    1. Conclusion 00:00:45

Product information

  • Title: Game Development with PyGame: Write Your Own Games, Simulations, and Demonstrations with Python
  • Author(s): Coen de Groot
  • Release date: December 2019
  • Publisher(s): Apress
  • ISBN: 9781484256619