Make Pong With Python!

preview_player
Показать описание
Welcome back to another video! In todays video I am going to be showing you how to make the famous game of Pong in Python! This is a great project for beginner or intermediate programmers. A lot of what we need to code out is the logic led to moving the ball around and having it bounce off the different paddles and implementing the score. If you are not, say an expert Python programmer already, you're going to learn a lot from this project!

⭐️ Timestamps ⭐️
00:00:00 | Overview
00:00:48 | Pong Demo
00:01:40 | Sponsor
00:02:38 | Pygame Install
00:04:16 | Pygame Setup
00:12:57 | Creating The Paddles
00:21:28 | Moving The Paddles
00:32:14 | Creating The Ball
00:35:52 | Moving The Ball
00:39:07 | Handling Collision
00:58:54 | Implementing Score
01:06:33 | Winning The Game
01:11:38 | Conclusion

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

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

⭐️ Tags ⭐️
-Tech With Tim
-Pong With Python
-How to Make Pong
-Programming Pong
-Coding Pong in Python

⭐️ Hashtags ⭐️
#TechWithTim #Python #Pong
Рекомендации по теме
Комментарии
Автор

Hey Tim. I just recently discovered your channel and I must say I'm very impressed with your hands on tutorials. I'm working for a non-profit organization that helps people with a psychiatric background to rehabilitate. A lot of the participants show an interest in programming and your content is very helpful to explore this. Well explained; bite sized; project based. Thanks man!

wearegeek
Автор

I am following you since you just have 10k subs and I am very happy to see your growth and Keep doing this kind of work.

nextgodlevel
Автор

I've missed your pygame tutorials! I find your tutorials interesting and especially the pygame ones since I started programming by making simple games, and now I'm learning pygame, so good job

dopdskc
Автор

Hey man, I don't comment too often but I felt the need to express my gratitude for all the great content. I studied C# years ago, loved it but got pigeon holed doing helpdesk work for 7 years and pretty much forgetting everything I'd learned. Almost a decade later I'm picking back up where I left off, discovering my passion again, and trying to get my foot in the development door professionally. Your channel has been a godsend. You have a natural talent for teaching and presenting information in a way that's easy to grasp. I've never been the type who learns much from just watching lectures. The guided tutorial format has always been best for me, and you've got some of the best I've been able to find. All the best!

jakemasters
Автор

Hey Tim - thanks a lot for your amazing videos! I just started coding/Python two months ago and you helped me so much already. Always thought, that coding is something I am not able to do, because during study it was just horribly boring, but you definetely helped to show me, that coding is a lot of fun, a lot of thinking and a lot of "sense of archievement", if everything works in the end. An AI-pong video would be great by the way! I am just now trying something similar with "Brick Breaker" and I am kind of stuck :D

AlkhliX
Автор

Hey Tim! Great video, just one tip:
Did you know that you can place the mouse location at multiple places AND do the exact same commands?

So if you want to change left_paddle, left_paddle and change that directly to right, you can hold CTRL, click at the end of the words in BOTH variables, backspace and then write Right. This makes you able to change and write the same thing multiple places.

Lahmeinthehouse
Автор

Tim, you are the best. I'm just a python beginner and I understand everything you taught here. Keep these kind of content going man. You're a legend.

junealexissantos
Автор

Awesome tutorial and clear explanations! Especially appreciated how to "solve for" with the equation :) Thanks!

jamesstone
Автор

Thank you very much for this super tutorial!
You are a very good teacher and I managed to learn a lot of useful things . Now I feel confident enough to try making something on my own.

olesmor
Автор

Thank you very much Tim for this tutorial for just this pong game. I am a beginner in pygame coding so this really helped me a lot and I appreciate it. Keep it up Tim

HenryTSBs
Автор

Love your videos tim. Congrats on 900k. Just 100k more and you'll reach the glorious Your videos are great tim keep It up

karpagambaskar
Автор

Hey Tim. I dont have programming background except for seeing a few videos on python. I had visual studio code on my pc. I saw the first few minutes of the video and I installed pygame using the code given and then copy-pasted the code you attached and now I am playing ping on my pc. I am done within 10 minutes. Thanks a lot.

salimmohammed
Автор

I did this as a complete beginner, literally know nothing about programming/coding. Just followed the video and did it using Pythons IDLE. Had to make 4 or 5 corrections along the way but is was pretty straight forward. Great video! Looking forward to learning actual fundamentals of coding online now, preferably in Python.

Edit: Being able to programme AI in this game would be great too for a future video.

myhatmygandhi
Автор

Tim, please do a video implementing AI for Pong.

tiagovieira
Автор

Awesome work! Keep up the great videos :)

asharhabib
Автор

You could save yourself a lot of typing by using the object-oriented features of Python. E.g. you could add some methods to the Paddle class like left_x(), right_x(), top_y(), bottom_y() that calculate and return the relevant edge values of the paddle. Same with the ball. It would also make the code much cleaner.

HcmfWice
Автор

Great Video! I have a program to train the Gym Pong in Pythorch. The training appears to go well, but the AI cannot play the game well. I am hoping these videos will provide some insight into why this is occurring. I like the way you didn't make a bunch of classes just to make classes, but made classes when it made sense to make classes. Looking forward to the Pong AI training video!

davebostain
Автор

Hello Tim, Great video and interesting material. Im practice with this pygame is really cool. Thanks friend

guipe
Автор

thank you, watching this is like therapy for me

kiish
Автор

Thank you very much!!! Did it finally 🙏

Aditya_