filmov
tv
How to Program a Game! (in Python)

Показать описание
Learn data skills with hands-on exercises & tutorials at Datacamp!
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!
Check out the follow-up video where we refactor the code and add additional features!
---------------------------------------------
PYTHON TUTORIAL SERIES:
---------------------------------------------
Follow me on social media!
---------------------------------------------
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!
-------------------------
*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.
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!
Check out the follow-up video where we refactor the code and add additional features!
---------------------------------------------
PYTHON TUTORIAL SERIES:
---------------------------------------------
Follow me on social media!
---------------------------------------------
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!
-------------------------
*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.
Комментарии