Python Game projects with source code

This article is a compilation of several game projects in Python along with the source code.

This page serves as a compilation point for all the game projects available on our site, Coderslegacy. Each Game project is listed with the following details.

  • An Image of the game
  • A brief description of the game
  • A brief list of the different concepts used in the creation of the game.
  • A link to the main game project.

If you follow the link to the main project page, you’ll find an entire tutorial on that game with step by step explanations, images, videos and a download link for the source code and materials used in the project.

1# Side Scrolling Car Game

Python game projects

This is a simple side scroller game involving cars. It’s like one of those old fashioned games where you’re moving a character sideways to avoid the incoming obstacles. Another version of this you’ll see commonly is a space game where you’re moving a space ship sideways and dodging incoming boulders.

Included Concepts

  1. Collision Detection
  2. Player movement (in all 4 directions)
  3. Enemy spawning
  4. Increasing Enemy difficulty as time passes
  5. Creating a Score counter

Follow the link to the full tutorial and source code!

2# Platformer Game

A fully fledged game, complete with advanced concepts and features. The tutorial series for this game is considered to be at the “intermediate” level.

Chances are you’ve played a platformer game before. It’s a simple game where you keep moving your character upwards by jumping on the available platforms. If you miss a platform and fall to your doom, it’s game over. You earn a point for every platform you cross. See how high a score you can get!

Included Concepts

  1. Advanced Collision Detection
  2. Player movement (realistic sideways movement)
  3. Jump mechanics
  4. Gravity and Friction
  5. Random Level Generation
  6. Warpable screen movement
  7. Scrolling the screen (creating an infinite height)
  8. Creating a Score counter

Follow the link to the full tutorial and source code!

3# Dungeon Game

The most advanced and complex game we’ve built here on our site, an RPG Fighter game. As you can guess, it’s recommended for those who already have some prior experience in pygame.

The tutorials should be easy enough to follow since each concept is given it’s own dedicated tutorial. The entire game currently has about a dozen tutorials, with more planned for the future.

The game has a rather simple concept. You control your character and a travel through dungeons in order to battle your enemies and clear the stages by defeating all the existing enemies. The number of available dungeons and number of stages per dungeon are all easily controllable.

As you progress through the game, you will gain experience which you can use to level your character up. You will also gain mana from killing enemies which you can use to activate special attacks like magic fireballs and invulnerability. All of your progress is auto-saved and can be reloaded at any time.

Included Concepts

Many other smaller or previously mentioned concepts are also in this tutorial series, but only the new and unique ones were mentioned below.

  • Advanced Collision Detection
  • Running Animations
  • Attacking Animations
  • Random Enemy Generation
  • Creating Different Stages and Dungeons
  • Load and Save features
  • Log File
  • Creating Special Attacks and Moves
  • Player Experience and leveling
  • FPS counter
  • Status Bar

Follow the link to the full tutorial and source code!

If you have a pygame game project that you think is worth sharing, contact us at [email protected]. If it meets all our requirements, we’ll add it here along with your contributor name.

This marks the end of the Python game projects with source code article. Any suggestions or contributions for Coderslegacy are more than welcome. Questions regarding the article content can be asked in the comments section below.

Notify of
Newest Most Voted
Inline Feedbacks
View all comments