HOW TO MAKE PONG IN PYTHON AND PYGAME! (15 Min)

preview_player
Показать описание
📑 SUMMARY

In this video, I show you how to create Pong in Python and PyGame in 15 minutes! Learn Python and PyGame by making Pong in this video!

🔗 LINKS

⌚ TIMESTAMPS

0:00​ | Intro
0:21 | PyGame Boilerplate
0:45 | Creating the Paddles
3:15 | Adding Movement
6:44 | Making the Ball
8:57 | Ball Logic
13:41 | Creating the Opponent AI
15:09 | Making a Score System
16:50 | End

🎬 MY SETUP:
💻 PC: Custom Built:
✅ Intel Core i5-10400F
✅ Gigabyte NVIDIA GeForce GTX 1060 3 GB WINDFORCE OC
✅ Gigabyte B560M DS3H AC
✅ G-Skill Ripjaws V DDR4-3200MHz CL16 RAM (2x8 GB)
✅ DeepCool MACUBE 110 Micro-ATX Case
✅ Western Digital Blue SN550 500 GB NVMe SSD
✅ EVGA 500 BR 80+ Bronze Power Supply
⌨️ Keyboard: Razer Huntsman Gaming Keyboard (Razer Opto-Mechanical Purple Switches)
🖥️ Monitor: ASUS VP228 21.5” 1080p 75Hz
🖱️ Mouse: VicTsing 2.4GHz Wireless Mouse
🎙️ Mic: Blue Yeti USB Condenser Microphone
💻 Secondary Laptop/Monitor: Dell Inspiron 11-3185 2-in-1

🏷️ TAGS
- Pong Game
- Pong PyGame
- Make Pong in Python

HASHTAGS:

#PyGame #Pong #Python
Рекомендации по теме
Комментарии
Автор

i don't even code but this is actually surprisingly engaging and i can tell every second of it has effort put in. nice job :)

tracy
Автор

u need more subs this is actually so good.

TheDefilerAzog
Автор

impressive explanations and editing, surprised you don't have more subs!

OrangeDied
Автор

hey, i've got a problem, in the minute 10:49 when the ball must come back to the center after a point, i can't use ball.CENTER, it says "Cannot assign member "center" for type "Rect"
"float" is incompatible with "int"
"float" is incompatible with "int"

juliansolanobotina
Автор

I need help. When I finish creating the paddles, the game screen shows nothing but a black screen. Is there anyway to fix it?

dgofficial-rf
Автор

It turns out if you create a variable called opponent_speed = (any number you want)
and then put it here like this:
if opponent.y < ball.y:
opponent.top += opponent_speed
if opponent.bottom > ball.y:
opponent.bottom -= opponent_speed

You can set how good the opponent can be!

NoobContent
Автор

btw if you want the ai a bit faster just chance the value to 2 it moves faster :)

ludvig
Автор

what code editor did you use for python in this video? Atom?

hri
Автор

Yo this is fantastic but for the score part I get an issue message in pycharm that says "End of statement expected" if you know how to fix that then it would be greatly appreciated

andrewsodyssey
welcome to shbcf.ru