Learn Python and Pygame by Building a Full Game

Опубликовано: 04 Июль 2026
на канале: Giovanni Code
939
34

Learn how to create a full game using Python with Pygame.

Parts:
0:00 Intro
0:41 Background
1:58 Player and Controls
4:06 Enemy
6:48 Shooting
8:47 Collisions
10:34 Lives
12:18 Score
13:28 Go Screen
15:20 Explosions
17:31 Moving Background
18:23 Shield Bar
19:36 Highscore
21:44 Collision Tweek
22:18 Powerups
25:11 Sounds
26:20 Outro

In this tutorial you will learn:
how to add the background and make it move;
how to create a player and its movements;
how to create randomly appearing and flying enemies;
how to add shooting;
how to add lives and a shield;
how to add explosion animations;
how to show a score;
how to save and use a highscore;
how to create a starting screen;
how to manage collisions;
how to create powerups;
how to add sounds and music.

Before starting, check GitHub for starting files and Pygame documentation:
https://www.pygame.org/docs/ref/sprit...
---------------------------------------------------------------------------------------------------------
Some of the code is inspired by Youtube channel KidsCanCode.
---------------------------------------------------------------------------------------------------------
GitHub:
https://github.com/codegiovanni/City_...
---------------------------------------------------------------------------------------------------------
Please leave a LIKE and SUBSCRIBE for more content!
---------------------------------------------------------------------------------------------------------
Rights:
Most of used images are free to use, except urban_long.png and urban_long_grey.png, they modified for this game, but originaly named "Top view of the city seamless pattern of streets, roads, houses, and cars" belongs and all rights have its creator Alexander Zelnitskiy.
All of the sounds is free to use. Music – Frozen Jam by tgfcoder   / tgfcoder   licensed under CC-BY-3.