Рет қаралды 492,804
Follow me / keithgalli for more tech content!
In this video we walk through building a simple game using the python programming language. This is a great exercise to apply your python skills in a fun way. We use the pygame library in this video. A video outline will be posted in the comment section. If you want to review any of the topics covered in this video, there are links below to all of my python tutorial videos.
If you are curious about implementing additional features to this game, leave a comment down below!
Make sure to SUBSCRIBE if you enjoyed this video, it encourages me to keep making them.
Have fun with your games!!! :)
Source code!
github.com/KeithGalli/Basic-P...
Check out the follow-up video where we refactor the code and add additional features!
• Professional Code Refa...
---------------------------------------------
PYTHON TUTORIAL SERIES:
Setup & Installation: • Why Should you Learn P...
1. Math & Variables: • Math & Variables in Py...
2. Conditional Statements (if, elif, else): • Conditional Statements...
3. Functions: • Functions in Python - ...
4. Lists & Tuples: • Lists & Tuples in Pyth...
5. For Loops & While Loops: • For Loops & While Loop...
---------------------------------------------
Follow me on social media!
Instagram | / keithgalli
Twitter | / keithgalli
---------------------------------------------
Video outline!
0:00 - Introduction
1:10 - Pygame Installation
2:57 - Creating a blank screen
4:40 - Making the game loop (+handling quit event)
7:46 - Drawing a rectangle
13:57 - Moving the rectangle with keypresses
20:10 - Blocks dropping from the sky
27:59 - Setting the frames per second rate (FPS)/Controlling speed of falling blocks
31:14 - Detecting Collisions
41:13 - Multiple enemies falling from sky (lists)
54:10 - Adding additional features (score, increasing difficulty, background/player colors)
-------------------------
Follow me on social media!
Instagram | / keithgalli
Twitter | / keithgalli
-------------------------
If you are curious to learn how I make my tutorials, check out this video: • How to Make a High Qua...
*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.