Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Program a Game in Python

Keith Galli via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course guides learners through building a simple dodge game in Python with Pygame. It covers setup, game loops, keyboard controls, falling enemies, collision detection, scoring, difficulty, and visual customization.

Syllabus

- Introduction
- Pygame Installation
- Creating a blank screen
- Making the game loop +handling quit event
- Drawing a rectangle
- Moving the rectangle with keypresses
- Blocks dropping from the sky
- Setting the frames per second rate FPS/Controlling speed of falling blocks
- Detecting Collisions
- Multiple enemies falling from sky lists
- Adding additional features score, increasing difficulty, background/player colors

Taught by

Keith Galli

Reviews

Start your review of How to Program a Game in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.