Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to Program a Game! (in Python)
ChannelKeith GalliChapters
Description from the creator
Learn data skills with hands-on exercises & tutorials at Datacamp!
datacamp.pxf.io/c/3588040/1012793/13294
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-Python-Game
Check out the follow-up video where we refactor the code and add additional features!
youtu.be/731LoaZCUjo
---------------------------------------------
PYTHON TUTORIAL SERIES:
Setup & Installation: youtu.be/RJL6Y761TNE
1. Math & Variables: youtu.be/XM0CtrJYM2A
2. Conditional Statements (if, elif, else): youtu.be/vsVGPcfxEiA
3. Functions: youtu.be/5U95tRdYySA
4. Lists & Tuples: youtu.be/_zFI6ytHHdY
5. For Loops & While Loops: youtu.be/WPF5M_Ic6Fc
---------------------------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli/
Twitter | twitter.com/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 | instagram.com/keithgalli/
Twitter | twitter.com/keithgalli
-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs
*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.
datacamp.pxf.io/c/3588040/1012793/13294
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-Python-Game
Check out the follow-up video where we refactor the code and add additional features!
youtu.be/731LoaZCUjo
---------------------------------------------
PYTHON TUTORIAL SERIES:
Setup & Installation: youtu.be/RJL6Y761TNE
1. Math & Variables: youtu.be/XM0CtrJYM2A
2. Conditional Statements (if, elif, else): youtu.be/vsVGPcfxEiA
3. Functions: youtu.be/5U95tRdYySA
4. Lists & Tuples: youtu.be/_zFI6ytHHdY
5. For Loops & While Loops: youtu.be/WPF5M_Ic6Fc
---------------------------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli/
Twitter | twitter.com/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 | instagram.com/keithgalli/
Twitter | twitter.com/keithgalli
-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs
*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.
About this tutorial
Keith Galli published this 1:10:07 video tutorial on October 29, 2018. It has been watched 497,232 times on YouTube.
- Channel
- Keith Galli
- Category
- Education
- Duration
- 1:10:07
- Published
- October 29, 2018
- Views
- 497,232
- Likes
- 9,009
Tags
Share
This tutorial in other languages
- FRComment programmer un jeu! (Dans le python)
- ESCómo programar un juego! (En Python)
- PTComo programar um jogo! (Em Python)
- ITCome programmare un gioco! (In Python)
- DEWie ein Spiel zu programmieren! (In Python)
- NLHoe maak je een spelprogramma! (In Python)
- RUКак программировать Игру! (В Python)
- PLJak zaprogramować grę! (Python)
- JAゲームをプログラムする方法! (Pythonで)
- ARكيفية برمجة لعبة! (في بايثون)
- HIकैसे एक खेल कार्यक्रम के लिए! (अजगर में)
- IDBagaimana Program sebuah Game! (Python)