Make a 2D Side-Scroller Game With PyGame (Overview)
In this course, you’ll learn about creating games using Python and the library PyGame.
By the end of this course, you’ll be able to:
- Draw items on your screen
- Play sound effects and music
- Handle user input
- Implement event loops
- Describe how game programming differs from standard procedural Python programming
This primer assumes you have a basic understanding of writing Python programs, including user-defined functions, imports, loops, and conditionals. You should also be familiar with how to open files on your platform. A basic understanding of object-oriented Python is helpful as well.
pygame works with most versions of Python, but Python 3.6 is recommended and used throughout this article.
00:19 You’ll learn how to draw items on your screen, how to play sound effects and add background music, how to handle user input, what an event loop is and how to implement it, and you’ll explore how game programming really differs from standard procedural Python programming. Now, there is a little bit of a suggested background for this course.
00:40 It’s not all required, but it would be helpful if you have some of this background. You will practice a lot of these techniques throughout, and hopefully raise your skills in these different areas.
00:50 You should understand what a user-defined function is, how to do basic imports, what loops are, how to set up conditionals, how to open files, and the basics of object-oriented Python. Again, all these concepts are going to be practiced in this course, but there’s not going to be a lot of time spent on the fundamentals of all these. You can kind of consider this a bit of an intermediate course.
01:20 It’s divided into four sections. The first section is all about starting with PyGame, in this introduction and overview lesson that you’re on right now. Then you’ll dive into the background on PyGame and how to set it up on your system.
01:42 You’ll wrap up this section with some fundamental PyGame concepts. Then you’ll move into a section on basic game design. It starts with a lesson describing what you’re creating with this tutorial game.
03:51 Section 4 starts with a lesson on controlling the game speed and frame rate. Then you’ll have a lesson on adding music… and along with that, some additional audio with adding some sound effects.
Become a Member to join the conversation.