Creating Space Invaders in Pygame/Python

Опубликовано: 30 Март 2025
на канале: Clear Code
132,948
2.8k

A tutorial on how to create Space invaders in python with Pygame. This is a more advanced tutorial so I assume that you already know the basics of Pygame.

If you don't, check out this tutorial by me that explains Pygame in detail:    • The ultimate introduction to Pygame  

If you want to code along, you can find all the files and the code here:
https://github.com/clear-code-project...

Timestamps:
0:00:00 - Intro
0:00:46 - Basic setup
0:04:22 - Creating the player
0:19:21 - Creating the laser for the player
0:27:48 - Creating the obstacles
0:48:43 - Creating the aliens
1:20:27 - Collisions
1:27:48 - Adding the health system
1:34:19 - Adding the score system
1:42:50 - Adding the CRT styling
1:48:55 - Adding the music and sounds
1:52:03 - Adding the victory screen