
Code an Infinite Free-Fall Game in Python Using PyGame! (Penguins Can't Fly)
Endlessly falling through the sky gets way cooler if you are a penguin dodging sharks who are wearing jetpacks and can bounce on clouds!!
GitHub for the project here:
https://github.com/plemaster01/PenguinsCantFly
Be Sure to check out the channel and subscribe for more great content!
https://www.youtube.com/channel/UCV5Ab39YnXvTZ6Grar9URxQ
If you want to say thanks in a big, big way, feel free to check out my Patreon for this page!
https://www.patreon.com/LeMasterTech
This game programmed in the python programming language shows how the PyGame GUI module can be used to create a really cool, fully developed game in barely 200 lines of code and less than 2 hours!
This project covers how to do a TON of the most frequently asked questions about python, including how to make appealing GUIs, how to separate key functionality out into dedicated functions, how to read and write to and from text files to save and store high score and player information and so much more!!
I had a ton of fun making this game, I hope you all have fun too! Let me know in the comments if you had any questions, if you liked it, and what you want to see more of in future videos!
Thanks for watching and good luck with your projects!!
Timestamps:
00:00 Introduction and Showcase
04:00 Setting Up the PyGame window
09:30 Drawing Clouds onto the Screen
20:14 Drawing the Penguin onto the Screen
27:18 Gravity and Bouncing Mechanics
33:25 Penguin Movement in X direction
39:00 Moving the full Screen + Infinitely Generating the Board
49:00 Creating Enemy Sharks
57:50 Moving Sharks to Patrol Back and Forth
1:04:46 Collision Detection for Game Over
1:11:53 Tracking Scoring, Storing High Scores and Progressive Difficulty
1:26:32 Adding Music and Sound Effects
1:31:38 Outro
These videos take a lot of effort, constructive feedback in the comments is always welcome, being a jerk is not
