Pygame - Create game in python || Pygame python tutorial
Вставка
- Опубліковано 2 кві 2023
- Pygame - Create game in python || How to make game using python
#shorts #trending #tutorials #python #pythontutorial
Python for beginners
Python
Python full course
Coding for beginners
Coding python programming
Python coding
Python langauge
Python code
Python turtle
Python game
Coding in mobile
Python turtle graphic tutorial
Turtle python
Pydroid 3 tutorial
Turtle python
Python design
Coding python for beginner
Python graphic
python game development
Awesome! Keep it up
Wow ! It easier than I thought 😅
you forgot last line.
"if py.event.get(py.QUIT): exit()"
Otherwise it won't exit even you press X button.
Im making a whole game, that will be covered in next part.
That way it looks very good, I didn't know that.
In my case I had to write:
run = True
while run:
for event in py.event.get():
if event.type == py.QUIT:
run = False
@@JesusAlmadaKbin my opinion, it is better
@@JesusAlmadaKbyour code reads better and is cleaner. It just depends on preference as well.
Bg song is awesome 👍 and nostalgic
good jobe, عمل جيد وممتاز
yeah
GG
BRO
Awesome!
fine , its good
GG bro
DANG, YOU’RE GOOD
Thanks bro its real!!
Learning coding, yeap
Bhai aap anniversary pc per kaunsi softwere use karteho
Bro just use the full name for the variables instead of ev for event. It makes it easier to read your code
Это изи, можно любой размер и цвет поставить, почему все так восхищаются?
300/400❤✌️
Nice example but using vim on a MacOS system, then “x” out fails to close the pygame instance, is there a simple fix?
Dang, you’re good
🎉❤😂🎉0aaa
Looks like Javascript
want full video
hehehehe
i didnt know this video was a year ago lol
Bro in 2005 using windows 7
Now try closing it without a crash😂
Whats the 20 and 5 for? In the draw.circle()
what's the use of learning it?
what's your theme? looks good
Its Synthwave 84
I dont need that tutorial i just need tutorial for copilot's help
Windows 8 Wut da hellll
bhai mere ko bhi coding
sikhani hai
Check my channel for tutorials
I did this, but it doesn't work. Please tell me how. An error keeps occurring in line 3.
Hi make Sure that pygame library is installed. Here is the full organised code.
import pygame
import sys
pygame.init()
width, height = 800, 600
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("Yellow Circle Border Demo")
circle_radius = 30
border_thickness = 2
circle_color = (255, 255, 0)
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
elif event.type == pygame.MOUSEBUTTONDOWN:
if event.button == 1:
circle_position = event.pos
pygame.draw.circle(screen, circle_color, circle_position, circle_radius, border_thickness)
pygame.display.flip()
pygame.quit()
sys.exit()
@@Creative_wiz ye copy paste krdu to chal jayega kya ?
Bro this program error bro பொய்யானது
Actually here not code just importing from pygame that why look simple
1 Make pyyoutube as py
2 End
.
.
.
.
.
😎 Ma girya hoya banda jama neech balye
You haven't included the exit code.
Bhaii error agya 😂
What did you run?
Pygame could not be resolved
Bhi app yeh cooding python ky kis software pr kartey ho ye python idle Hain ya pycharm ya much aur
Vs code hai bhai😊
After py.draw.circle the numbers are 20 5 what's after that?
radius and line width
For children
I dint understand because i never used pygame librbary
😢
Bro give me a source code of this project
Sure, this a galaxy attack, shooting game. Source code is available on my telegram channel. So please join.
Engine?
What is the program name
Its python programming, in this code pygame library of python is used.
Nice music
💀
do I need to download any app or software?
Yes! Install python and visual studio code editor.
Error
No module named 'pygame'
Please install pygame library,
Goto terminal and run this command👉
'pip install pygame'
my code is not working
I cant see screen, col, pos, 24, 5, and it cuts off after five, help
Gente, programação é para poucos 😢
É nada
@@2ch921 😂😂😂😂
Coming error in 1st line
Need to install pygame library first, ah goto terminal and run 'pip install pygame' command.
Bro what game engine?
💀💀💀
Can anyone tell whats the name of his vs code theme?
Hi, its synthWave 84 theme, and make sure to activate glow effect.
is this vsc or what editor are you using
Yes! It is vs code
k
when i run it it says no module name pygame what should i do?
No worries, we need to install pygame library, it do not comes with python we need to install it. Go to terminal and run command 👉
'pip install pygame'
Where can i run this code?
We can run both in pc and phone, install python and vs code in pc, for phone install pydroid 3 from playstore.
Can you do a tutorial pls?
no module named Pygame
Goto to terminal and install the pygame library first => pip install pygame
@@Creative_wiz thank you so much
it didn'T work about me lol and i don't even can find out the mistake
Me too
Bro which website
Vs code
Which exe?
vs code editor.
what was this coded on
Vs code editor
what ur color theme
probably tokyo nights or one dark pro
ok so why do you share this? nothing impressive.
I think it's just to attract people to the youtube channel and other videos
App name
vs code editor.
@@Creative_wiz or visual studio code
It's is pydriod 3
No, its vscode but we can do in pydroid too, Pygame library suppprts in pydroid 3
How to install in pydriod 3? I'm very new to coding
This is one of the most useless things I learned, even TKinter is better than it is.
Pygame is very bad if you want to create a game.
How to run game after programming it
f5
or
cntr + alt + n
İt is fake😂😂😂😂😂😂😂
Why do you think so?
Because fail
@@misirikos457Average coder. Try to make your own projects instead of copying others, doing a fault and then blamkng them😂😂
Bad cod😡😡
Fake
GG BRO