Create an Endless Runner Game Using Python and Pygame! Infinite Obstacle Jumping, Full Game Tutorial

Create an Endless Runner Game Using Python and Pygame! Infinite Obstacle Jumping, Full Game Tutorial

L
LeMaster Tech
39 Video Views·Apr 24, 2025

This video shows you how to create an entire endless runner game in python using Pygame! Start to finish this tutorial goes line by line and teaches you everything you need to know whether you are a total Pygame novice or just looking to hone your skills!

Check out my personal channel for more fun science content!
https://www.youtube.com/@peterlemaster8310

We start by defining the game screen and creating dimensions and game variables, setting rgb color values and drawing the game floor. Then we draw the player onto the screen, and create the controls for jumping and lateral back and forth movement using the space key and left and right arrow keys. Then we create a list of obstacles and randomly generate spawn locations for an infinite loop, then we handle restart tracking and score counting!

Once you complete this game check out the rest of the channel for tons of other tutorials and instructional videos on a wide variety of subjects!

Let us know in the comments in you have any questions or want to see something in particular in a future video!
https://www.youtube.com/channel/UCV5Ab39YnXvTZ6Grar9URxQ