How to Make a Game in Python

preview_player
Показать описание
In today's video I will be giving you guys an introduction to Python Game Development using the Pygame module, which is a simple 2D graphics library in Python. This tutorial will be simple, fun, yet allow you to create an extensible game!

⭐️ Timestamps ⭐️
00:00 | Project Overview
00:46 | Project Demo
01:52 | Setup/Installation
02:45 | Creating The Window
07:31 | Adding a Background Image
12:35 | Moving a Character
20:38 | Adding Player Boundaries
22:45 | Keeping Track Of Time
24:15 | Rendering Text
27:08 | Adding Projectiles
33:55 | Moving Projectiles & Collision
37:35 | Drawing Projectiles
38:45 | Handling Losing The Game
42:18 | Conclusion

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
- Tech With Tim
- Python Game Development
- Python Full Tutorial

⭐️ Hashtags ⭐️
#techwithtim #Gamedevelopment #pythonfulltutorial
Рекомендации по теме
Комментарии
Автор

i am new to python and pygame but i can say it has been the best 43 min of my time with coding..
and i never thought i will go through the day without using print()
message = "good bye!!"
print(message)

codsweat
Автор

Pygame has been a lot of fun to learn... I'm still in the learning phase but the gears are already turning when thinking of new ideas to try and implement. Thank you for the great help... it only gets clear with practice and good guidance like you provide here 👍

fidelrivera
Автор

Tim, not many people out there teach code in such a comprehensive and easy to digest manner like you do. Most tutorials are really hard to follow and the person teaching is either super unorganized, or just really bad at teaching in general for many reasons. But you get it dude, and people like me (people who wanna learn, ) appreciate it a ton

anactualalpaca
Автор

This is the first tutorial I got all the way through for Python. Very well made, thank you.

summaalchemica
Автор

After watching just 2 of you videos, the "Learn Python with this one project" you made 5 months ago, and this one I decided to write the code to print a full times table to the console (will do it to a game window next) and I spaced all the numbers correctly in the console so they appear in nice columns... single digits and double digits made the spacing all wrong.
Nothing fancy but its little bits like this that build familiarity with the syntax.

My goal with pygame is to build a spirograph style project as I remember spending all my lunch breaks on the schools BBC micro in the science labs when I was 15 playing with the code to generate the images

the time and effort you put into these tutorials is greatly appreciated and I will be going through all your videos to aid my learning journey.

Nitreous
Автор

This was honestly such a fun tutorial! I now have a functional game that I can show off and mess with to try to work on my code abilities! Thank you! I was also able to add a lot of your descriptions as to why you put certain things where you did that way I can reference back to it if needed! Great tutorial!

BumbleBeeast_
Автор

TIm, thank you so much for all of your great videos. They've been great for me to follow along and learn python. I wish you have an extended part of this video or a connected video that went into putting a graphic sprite as you mentioned so you could have more than just a red block. I went nerdy and made my background a space and TARDIS image and themed the messages and name from Doctor Who, but I am not nearly advanced enough to know how to change it to a sprite.

shawn
Автор

As a beginner python coder: your tutorials help me so much. Keep making them!

thoserandomshredders
Автор

THIS WAS THE BEST TUTORIAL EVER I HAVE GONE THROUGH OVER 50 VIDEOS AND I ALWAYS GIVE UP BECAUSE THEY ARE TOO HARD BUT THIS WAS A VERY SIMPLE YET FUN PROJECT!
TY SO MUCH KEEP IT GOING!

asifmehrabi
Автор

Tim, thank you very much for this great tutorial. I got so addicted over the weekend that I changed the game to run in full screen, added sounds and music, lives, etc. As you said, it is great starting point and as well a real good example to give pupils an intro into programming on a fun way.

bee
Автор

Hey Tim! I just wanted to say how much I appreciate these videos! I am using them to learn python and it's going well for me. I'm about halfway done with this one rn, I look forward to following many more of you're tutorials! Thanks again.

gigameister
Автор

You're GOATED bro.I respect your dedication after all these years from when you were very young...Keep it up

Anonymous-dkek
Автор

Really grateful for this video. I had a bit of a rocky start and I had to rewind about 50 times because I was making errors but you explained everything clearly and concisely. I've got a long way to go but you have helped me take my first few steps on realizing some daft and hopefully fun ideas

Thanks again :)

seanyB
Автор

For anyone who's recently upgraded to Python 3.11, you'll need to add --pre to your pip command until they update PyGame.

cawsha
Автор

Wanted to make a comment to house the code. Fantastic tutorial. I recommend watching other videos on python to simply get an understanding of loops and variables. Then coming back. Makes the whole thing a lot more understandable !!

Drifters_Productions
Автор

This tutorial was amazing and even turned it into a game about traversing a asteroid belt, I managed to replace the squares with images and now all I need to do is figure out on making a menu, and import audios along with a small tutorial box at the start

rileylecaptain
Автор

I'm so happy I made this. I feel like I really got a foot in the door for game dev

wyattearth
Автор

Thanks for this awesome tutorial Tim, I needed this :)

gurkiratkaur
Автор

Wow this is what I've been searching for!

QuocDatPhung
Автор

I finished the game, and I wasn't able to do the text, as I was using too old a version of python but I got it working and it's great! thanks!

TevlanTea