By using our services, you agree to our Privacy Policy. Click to accept.

wildsbet.com

# How to Program a Game! (in Python) Video

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.

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

---------------------------------------------
Instagram | https://www.instagram.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)

-------------------------
Instagram | https://www.instagram.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.

This site provides links to random videos hosted at YouTube, with the emphasis on random. π₯

## Origins of the Idea π±

The original idea for this site stemmed from the need to benchmark the popularity of a video against the general population of YouTube videos. π§

### Challenges Faced π€

Obtaining a large sample of videos was crucial for accurate ranking, but YouTube lacks a direct method to gather random video IDs.

Even searching for random strings on YouTube doesn't yield truly random results, complicating the process further. π

### Creating Truly Random Links π οΈ

The YouTube API offers additional functions enabling the discovery of more random videos. Through inventive techniques and a touch of space-time manipulation, we've achieved a process yielding nearly 100% random links to YouTube videos.

YouTube, an American video-sharing website based in San Bruno, California, offers a diverse range of user-generated and corporate media content. π

### Content and Users π΅

Users can upload, view, rate, share, and comment on videos, with content spanning video clips, music videos, live streams, and more.

While most content is uploaded by individuals, media corporations like CBS and the BBC also contribute. Unregistered users can watch videos, while registered users enjoy additional privileges such as uploading unlimited videos and adding comments.

### Monetization and Impact π€

As of February 2017, over 400 hours of content were uploaded to YouTube every minute, with the site ranking as the second-most popular globally. By May 2019, this figure exceeded 500 hours per minute. π

## List of ours generatorsβ‘

Random Film and Animation Video Generator

Random Autos and Vehicles Video Generator

Random Music Video Generator

Random Pets and Animals Video Generator

Random Sports Video Generator

Random Travel and Events Video Generator

Random Gaming Video Generator

Random People and Blogs Video Generator

Random Comedy Video Generator

Random Entertainment Video Generator

Random News and Politics Video Generator

Random Howto and Style Video Generator

Random Education Video Generator

Random Science and Technology Video Generator

Random Nonprofits and Activism Video Generator