RUVIDEO
Поделитесь видео 🙏

How to Program a Game! (in Python)

Follow me https://instagram.com/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!
https://github.com/KeithGalli/Basic-Python-Game

Check out the follow-up video where we refactor the code and add additional features!
https://youtu.be/731LoaZCUjo

---------------------------------------------

PYTHON TUTORIAL SERIES:

Setup & Installation: https://youtu.be/RJL6Y761TNE

1. Math & Variables: https://youtu.be/XM0CtrJYM2A
2. Conditional Statements (if, elif, else): https://youtu.be/vsVGPcfxEiA
3. Functions: https://youtu.be/5U95tRdYySA
4. Lists & Tuples: https://youtu.be/_zFI6ytHHdY
5. For Loops & While Loops: https://youtu.be/WPF5M_Ic6Fc

---------------------------------------------
Follow me on social media!
Instagram | https://www.instagram.com/keithgalli/
Twitter | https://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 | https://www.instagram.com/keithgalli/
Twitter | https://twitter.com/keithgalli

-------------------------
If you are curious to learn how I make my tutorials, check out this video: https://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.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Program a Game! (in Python)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.