Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

The Course Game

00:00 To kick off this section, we’ll talk about the design of the tutorial game you’re going to build. Before you start writing any code, it seems to work best to have a good idea of what sort of design you want in place. As this is a tutorial, you’ll start with the design to some of the basic gameplay.

00:18 The primary goal for the game is to avoid the incoming obstacles. The player is going to start on the left side of the screen, and then obstacles are going to enter randomly on the right and move left in a straight line. As far as controls go, the player can move left, right, up, and down to avoid the obstacles.

00:36 You’ll need to set it up so that the player cannot move off the screen. And the game is either going to end when the player’s hit by an obstacle or when the user closes the window.

00:46 What can be just as useful as having goals for your game is having not goals for your game. Some advice that was given to the author of the original article by one of their colleagues was “You don’t know what you do until you know what you don’t do.” And that’s really true in this case. You can think of it as project management scope creep.

01:05 I remember working at this bank and trying to build a simple reporting system, and everybody kept throwing new and crazy cool features at me before I could even show them a prototype of how it worked.

01:16 You’re going to create a simple tutorial game, so what’s it not going to do? Well, there’s going to be no multiple lives, no scorekeeping, no player attack capabilities, no advancing levels, and no boss characters. That helps you focus on the fundamentals of getting the game started, but any of these are excellent potential ways for you to explore growing your PyGame skills. And with that, it’s time to start writing some code by importing and initializing PyGame.

Become a Member to join the conversation.