Pygame - Create game in python || Pygame python tutorial
Vložit
- čas přidán 2. 04. 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
Wow ! It easier than I thought 😅
Awesome! Keep it up
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.
good jobe, عمل جيد وممتاز
yeah
Bg song is awesome 👍 and nostalgic
Like it
fine , its good
❤which audio!?
DANG, YOU’RE GOOD
Awesome!
GG
BRO
Thanks bro its real!!
Learning coding, yeap
GG bro
Dang, you’re good
🎉❤😂🎉0aaa
Bro this program error bro பொய்யானது
Cool! Is there any other games though?
Yes.
Это изи, можно любой размер и цвет поставить, почему все так восхищаются?
i didnt know this video was a year ago lol
300/400❤✌️
Is that vsc ? Or something
broi wanna make game that showin playstore how is it possible please make one complete video of game and published it ,,please bro help me
Bro just use the full name for the variables instead of ev for event. It makes it easier to read your code
hehehehe
My brain can't process because there are not many available codes I can get to make the game work. 👁👄👁
Looks like Javascript
Bro in 2005 using windows 7
want full video
Whats the 20 and 5 for? In the draw.circle()
Bhi app yeh cooding python ky kis software pr kartey ho ye python idle Hain ya pycharm ya much aur
Vs code hai bhai😊
Windows 8 Wut da hellll
Bhai aap anniversary pc per kaunsi softwere use karteho
visual studio Code
Now try closing it without a crash😂
bhai mere ko bhi coding
sikhani hai
Check my channel for tutorials
what's the use of learning it?
Nice example but using vim on a MacOS system, then “x” out fails to close the pygame instance, is there a simple fix?
Plg give anyone app link or app name to me
😢
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 ?
What did you run?
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.
I dont need that tutorial i just need tutorial for copilot's help
For children
Engine?
After py.draw.circle the numbers are 20 5 what's after that?
radius and line width
what's your theme? looks good
Its Synthwave 84
Pygame could not be resolved
1 Make pyyoutube as py
2 End
.
.
.
.
.
😎 Ma girya hoya banda jama neech balye
You haven't included the exit code.
💀
I dint understand because i never used pygame librbary
You just create infinite loop☠️
Bhaii error agya 😂
my code is not working
Actually here not code just importing from pygame that why look simple
I cant see screen, col, pos, 24, 5, and it cuts off after five, help
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.
Can anyone tell whats the name of his vs code theme?
Hi, its synthWave 84 theme, and make sure to activate glow effect.
Coming error in 1st line
Need to install pygame library first, ah goto terminal and run 'pip install pygame' command.
What type of python is this
@@Metabolism-ev7dj its pygame library of python.
Gente, programação é para poucos 😢
É nada
@@2ch921 😂😂😂😂
Error
No module named 'pygame'
Please install pygame library,
Goto terminal and run this command👉
'pip install pygame'
there is no library called pygame
Please install pygame library before running the code.
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'
is this vsc or what editor are you using
Yes! It is vs code
k
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?
it didn'T work about me lol and i don't even can find out the mistake
Me too
Bro what game engine?
💀💀💀
no module named Pygame
Goto to terminal and install the pygame library first => pip install pygame
@@Creative_wiz thank you so much
what was this coded on
Vs code editor
what ur color theme
probably tokyo nights or one dark pro
Bro which website
Vs code
ok so why do you share this? nothing impressive.
I think it's just to attract people to the youtube channel and other videos
Which exe?
vs code editor.
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
Fake 😂😂
Bad cod😡😡
İt is fake😂😂😂😂😂😂😂
Why do you think so?
Because fail
@@İkoskralAverage coder. Try to make your own projects instead of copying others, doing a fault and then blamkng them😂😂
How to run game after programming it
f5
or
cntr + alt + n
Fake
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.
GG BRO