No video

Pygame - Create game in python || Pygame python tutorial

  Рет қаралды 612,230

Creativewiz

Creativewiz

Күн бұрын

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

Пікірлер: 164
@SmithNguyen1711
@SmithNguyen1711 3 ай бұрын
Wow ! It easier than I thought 😅
@himaMyt
@himaMyt 19 күн бұрын
how abt the script?
@SmithNguyen1711
@SmithNguyen1711 18 күн бұрын
​@@himaMyt It mean when you click in the game window, the program will get the mouse position and then it draw a circle with the mouse position that you clicked.
@himaMyt
@himaMyt 18 күн бұрын
@@SmithNguyen1711 oooo. Thank you.
@brijeshchaudhari7184
@brijeshchaudhari7184 6 ай бұрын
Awesome! Keep it up
@_____JUNPark_____
@_____JUNPark_____ Жыл бұрын
you forgot last line. "if py.event.get(py.QUIT): exit()" Otherwise it won't exit even you press X button.
@Creative_wiz
@Creative_wiz Жыл бұрын
Im making a whole game, that will be covered in next part.
@JesusAlmadaKb
@JesusAlmadaKb 5 ай бұрын
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
@Appol3010
@Appol3010 5 ай бұрын
@@JesusAlmadaKbin my opinion, it is better
@tardissing5600
@tardissing5600 4 ай бұрын
@@JesusAlmadaKbyour code reads better and is cleaner. It just depends on preference as well.
@mhinfo2248
@mhinfo2248 Жыл бұрын
good jobe, عمل جيد وممتاز
@LXNGVXB
@LXNGVXB 4 ай бұрын
yeah
@Cyberabhi09
@Cyberabhi09 9 ай бұрын
Bg song is awesome 👍 and nostalgic
@CodewithAnHome
@CodewithAnHome 14 күн бұрын
nice video
@HikayemBitmedi-mj1qg
@HikayemBitmedi-mj1qg 12 күн бұрын
Wow!Thats cool😮
@angpanha3566
@angpanha3566 6 күн бұрын
Wait, so it draws a circle everytime the mouse button is released?
@mahidmunna01
@mahidmunna01 18 күн бұрын
Your code is knowledge is strength ❤
@danielonyedikachiokwandu6927
@danielonyedikachiokwandu6927 2 күн бұрын
Most you be online using pycharm???
@it_learning_eko
@it_learning_eko Жыл бұрын
fine , its good
@VirtualWorld-wv2um
@VirtualWorld-wv2um Ай бұрын
❤which audio!?
@TechBox2026
@TechBox2026 15 күн бұрын
Good
@jaswantbalian4433
@jaswantbalian4433 3 ай бұрын
GG BRO
@shoxjaxonnurxonov2984
@shoxjaxonnurxonov2984 Ай бұрын
Like it
@jaswantbalian4433
@jaswantbalian4433 3 ай бұрын
Awesome!
@the_x1_sachann
@the_x1_sachann 23 күн бұрын
import turtle as t import colorsys t.bgcolor("black") t.tracer(100) t.pensize(1) h=0.5 for i in range (250): c=colorsys.hsv_to_rgb(h,1,1) h=0.0008 t.fillcolor(c) t.begin_fill() t.fd(i) t.lt(100) t.circle(30) for j in range(2): t.fd(i*j) t.rt(109) t.end_fill()
@Uttam12340
@Uttam12340 27 күн бұрын
How can i start it
@zachyy4791
@zachyy4791 Ай бұрын
You forgot to add a quit event, now you are stuck in the game forever drawing endless circles over and over again 😂
@GrowMode_YT
@GrowMode_YT 26 күн бұрын
Relaunch active terminal and task manager can close it, but yeah, he did forget to add a way to close it
@zachyy4791
@zachyy4791 26 күн бұрын
@@GrowMode_YT that sure is a way but I guess they should just add it, should be second nature really
@stawollor-ni4ym
@stawollor-ni4ym 7 ай бұрын
I did this, but it doesn't work. Please tell me how. An error keeps occurring in line 3.
@Creative_wiz
@Creative_wiz 7 ай бұрын
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()
@blasters0001
@blasters0001 2 ай бұрын
@@Creative_wiz ye copy paste krdu to chal jayega kya ?
@jaswantbalian4433
@jaswantbalian4433 3 ай бұрын
GG bro
@user-sw9bp6he5j
@user-sw9bp6he5j 18 күн бұрын
How can I learn
@kairuannewambui8456
@kairuannewambui8456 3 ай бұрын
Learning coding, yeap
@jaswantbalian4433
@jaswantbalian4433 3 ай бұрын
DANG, YOU’RE GOOD
@catzforlife575
@catzforlife575 9 ай бұрын
After py.draw.circle the numbers are 20 5 what's after that?
@mestresplinter2467
@mestresplinter2467 5 ай бұрын
radius and line width
@Anvitkhandare
@Anvitkhandare 3 ай бұрын
Bhai aap anniversary pc per kaunsi softwere use karteho
@islamhassan6046
@islamhassan6046 Ай бұрын
visual studio Code
@rajvijoriya
@rajvijoriya Жыл бұрын
bhai mere ko bhi coding sikhani hai
@witty.coder1
@witty.coder1 6 ай бұрын
Check my channel for tutorials
@gorangghosh1293
@gorangghosh1293 28 күн бұрын
Laptop main tumhara code kaam nhi kar raha hai
@jaswantbalian4433
@jaswantbalian4433 3 ай бұрын
Dang, you’re good
@SamuelMuchemi-um4du
@SamuelMuchemi-um4du 2 ай бұрын
🎉❤😂🎉0aaa
@tigerffshorts
@tigerffshorts Жыл бұрын
Bhi app yeh cooding python ky kis software pr kartey ho ye python idle Hain ya pycharm ya much aur
@Creative_wiz
@Creative_wiz Жыл бұрын
Vs code hai bhai😊
@vivekrana4122
@vivekrana4122 10 күн бұрын
Bro vs code pr phython ki bhi coding kr skte
@SpiderMan-ze2qm
@SpiderMan-ze2qm Ай бұрын
Cool! Is there any other games though?
@Creative_wiz
@Creative_wiz Ай бұрын
Yes.
@QuackQuack6
@QuackQuack6 3 ай бұрын
what's your theme? looks good
@Creative_wiz
@Creative_wiz 3 ай бұрын
Its Synthwave 84
@MrChungmen
@MrChungmen 4 ай бұрын
do I need to download any app or software?
@Creative_wiz
@Creative_wiz 4 ай бұрын
Yes! Install python and visual studio code editor.
@emmanuelekpar
@emmanuelekpar 2 ай бұрын
Bro just use the full name for the variables instead of ev for event. It makes it easier to read your code
@MtlD-fi9ph
@MtlD-fi9ph 18 күн бұрын
ay bro check this out: Import hand mid_finger = 135°
@skcyberhunter44
@skcyberhunter44 9 ай бұрын
Bro give me a source code of this project
@Creative_wiz
@Creative_wiz 9 ай бұрын
Sure, this a galaxy attack, shooting game. Source code is available on my telegram channel. So please join.
@techgoat618
@techgoat618 2 ай бұрын
Nice example but using vim on a MacOS system, then “x” out fails to close the pygame instance, is there a simple fix?
@lakshminarayana5932
@lakshminarayana5932 5 ай бұрын
Thanks bro its real!!
@ptchouhan7963
@ptchouhan7963 10 ай бұрын
want full video
@guitC
@guitC 2 ай бұрын
what's the use of learning it?
@ashersilver7388
@ashersilver7388 2 ай бұрын
Whats the 20 and 5 for? In the draw.circle()
@erty-hc6jb
@erty-hc6jb 17 күн бұрын
center and radius. you can check the pygame docs for more info too
@user-dt8tw4mh8w
@user-dt8tw4mh8w 3 ай бұрын
Это изи, можно любой размер и цвет поставить, почему все так восхищаются?
@parekvrohlikuskecupem5821
@parekvrohlikuskecupem5821 4 ай бұрын
What is the program name
@Creative_wiz
@Creative_wiz 4 ай бұрын
Its python programming, in this code pygame library of python is used.
@Cve0w
@Cve0w Ай бұрын
Is that vsc ? Or something
@Art1cG
@Art1cG Ай бұрын
What type of python is this
@Creative_wiz
@Creative_wiz Ай бұрын
@@Art1cG its pygame library of python.
@seanclarencesalipong7936
@seanclarencesalipong7936 Ай бұрын
My brain can't process because there are not many available codes I can get to make the game work. 👁👄👁
@SatishChandra-zo6dg
@SatishChandra-zo6dg Ай бұрын
Plg give anyone app link or app name to me
@niksbiedrins7741
@niksbiedrins7741 29 күн бұрын
pygame good for small projects horrible for big projects
@utsavkhadga2865
@utsavkhadga2865 4 ай бұрын
Bro in 2005 using windows 7
@Rakesh-hc3tl
@Rakesh-hc3tl 2 ай бұрын
Bro this program error bro பொய்யானது
@rathoreJaipurr
@rathoreJaipurr 27 күн бұрын
Chat gpt ke jamane me itna kaam khud kara pade to kahe ke developer 😂
@Creative_wiz
@Creative_wiz 27 күн бұрын
Chatgpt apke liye interview dene nahi jayega.
@rathoreJaipurr
@rathoreJaipurr 26 күн бұрын
@@Creative_wiz freelancing, wfh ka naam suna h . Bande ko skills aani chahiye na ki achi english bolne wla chahiye 😂. Client ko kaam se mtlb hot h 😂😂😂
@samadeyc8693
@samadeyc8693 3 ай бұрын
Looks like Javascript
@ZakariaHazzou-bf9hb
@ZakariaHazzou-bf9hb 13 сағат бұрын
The editor name
@Efcetro.
@Efcetro. 3 ай бұрын
is this vsc or what editor are you using
@Creative_wiz
@Creative_wiz 3 ай бұрын
Yes! It is vs code
@Efcetro.
@Efcetro. 3 ай бұрын
k
@LinusRamzexs
@LinusRamzexs 3 ай бұрын
What did you run?
@Efcetro.
@Efcetro. 3 ай бұрын
i didnt know this video was a year ago lol
@user-on6ec1bz4r
@user-on6ec1bz4r 2 ай бұрын
300/400❤✌️
@ivana9386
@ivana9386 Жыл бұрын
Nice music
@vijaytyagi483
@vijaytyagi483 24 күн бұрын
Name ev is not defined in 6th line
@troigame6624
@troigame6624 3 ай бұрын
Now try closing it without a crash😂
@Kevin-k8j
@Kevin-k8j 4 ай бұрын
Where can i run this code?
@Creative_wiz
@Creative_wiz 4 ай бұрын
We can run both in pc and phone, install python and vs code in pc, for phone install pydroid 3 from playstore.
@Kevin-k8j
@Kevin-k8j 4 ай бұрын
Can you do a tutorial pls?
@user-je3oc7sh4j
@user-je3oc7sh4j 4 ай бұрын
I dont need that tutorial i just need tutorial for copilot's help
@RaymondMwaura
@RaymondMwaura 2 ай бұрын
You haven't included the exit code.
@ToastedHeadcrab
@ToastedHeadcrab 10 ай бұрын
Windows 8 Wut da hellll
@Vllnz828
@Vllnz828 3 ай бұрын
when i run it it says no module name pygame what should i do?
@Creative_wiz
@Creative_wiz 2 ай бұрын
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'
@nbilable
@nbilable 2 ай бұрын
Pygame could not be resolved
@Anak_siapa2511
@Anak_siapa2511 4 ай бұрын
Engine?
@silenttornado-psfour
@silenttornado-psfour 3 ай бұрын
I cant see screen, col, pos, 24, 5, and it cuts off after five, help
@Itzkamisenpai
@Itzkamisenpai Ай бұрын
You just create infinite loop☠️
@nathiyam4963
@nathiyam4963 3 ай бұрын
Error No module named 'pygame'
@Creative_wiz
@Creative_wiz 3 ай бұрын
Please install pygame library, Goto terminal and run this command👉 'pip install pygame'
@Shorts-n3-l5p
@Shorts-n3-l5p 2 ай бұрын
Bro what game engine?
@qazxi0
@qazxi0 2 ай бұрын
💀💀💀
@foujiashareen5784
@foujiashareen5784 2 ай бұрын
I dint understand because i never used pygame librbary
@adhiprasanth4628
@adhiprasanth4628 2 ай бұрын
Actually here not code just importing from pygame that why look simple
@Abdul-it1gt
@Abdul-it1gt 5 ай бұрын
hehehehe
@tharvinofficial8593
@tharvinofficial8593 2 ай бұрын
Bro which website
@X-AK.02010
@X-AK.02010 2 ай бұрын
Vs code
@Matchy964
@Matchy964 2 ай бұрын
Can anyone tell whats the name of his vs code theme?
@Creative_wiz
@Creative_wiz 2 ай бұрын
Hi, its synthWave 84 theme, and make sure to activate glow effect.
@Gallant_Garima54
@Gallant_Garima54 5 ай бұрын
Coming error in 1st line
@Creative_wiz
@Creative_wiz 5 ай бұрын
Need to install pygame library first, ah goto terminal and run 'pip install pygame' command.
@thanhhung6701
@thanhhung6701 10 ай бұрын
For children
@VERMA_RAJVEER24
@VERMA_RAJVEER24 2 ай бұрын
Which exe?
@Creative_wiz
@Creative_wiz 2 ай бұрын
vs code editor.
@mr_legend_tech
@mr_legend_tech 21 күн бұрын
Here is in first line 1 error occured why
@Creative_wiz
@Creative_wiz 21 күн бұрын
Please install pygame library first.
@NirmataAviation
@NirmataAviation 2 ай бұрын
what was this coded on
@Creative_wiz
@Creative_wiz 2 ай бұрын
Vs code editor
@islamhassan6046
@islamhassan6046 Ай бұрын
there is no library called pygame
@Creative_wiz
@Creative_wiz Ай бұрын
Please install pygame library before running the code.
@01juniorpen
@01juniorpen 3 ай бұрын
what ur color theme
@purekayx
@purekayx 3 ай бұрын
probably tokyo nights or one dark pro
@MuhammedAbdulfetah-xo6zu
@MuhammedAbdulfetah-xo6zu Ай бұрын
my code is not working
@road_to_success5416
@road_to_success5416 4 күн бұрын
Which code editor or ide you use ?
@Creative_wiz
@Creative_wiz 2 күн бұрын
Its vs code editor with 'synthe wave 84' theme
@Hey31259
@Hey31259 3 ай бұрын
App name
@Creative_wiz
@Creative_wiz 3 ай бұрын
vs code editor.
@fikilbi
@fikilbi 3 ай бұрын
@@Creative_wiz or visual studio code
@user-fr8bk2kd5d
@user-fr8bk2kd5d Ай бұрын
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
@yadyalfitri3725
@yadyalfitri3725 28 күн бұрын
Cmd
@Bilal_on_The_way
@Bilal_on_The_way 3 ай бұрын
1 Make pyyoutube as py 2 End . . . . . 😎 Ma girya hoya banda jama neech balye
@nitinmore8255
@nitinmore8255 5 ай бұрын
no module named Pygame
@Creative_wiz
@Creative_wiz 5 ай бұрын
Goto to terminal and install the pygame library first => pip install pygame
@nitinmore8255
@nitinmore8255 5 ай бұрын
@@Creative_wiz thank you so much
@marconisuchiha6504
@marconisuchiha6504 4 ай бұрын
Gente, programação é para poucos 😢
@2ch921
@2ch921 4 ай бұрын
É nada
@marconisuchiha6504
@marconisuchiha6504 4 ай бұрын
@@2ch921 😂😂😂😂
@thebe1768
@thebe1768 3 ай бұрын
it didn'T work about me lol and i don't even can find out the mistake
@Vamsikrishna95505
@Vamsikrishna95505 2 ай бұрын
Me too
@Rahuledits09
@Rahuledits09 2 ай бұрын
Bhaii error agya 😂
@serajulislam4343
@serajulislam4343 5 ай бұрын
😢
@shikha3219
@shikha3219 Жыл бұрын
How to run game after programming it
@Ossadadevada
@Ossadadevada 11 ай бұрын
f5 or cntr + alt + n
@purekayx
@purekayx 3 ай бұрын
ok so why do you share this? nothing impressive.
@deendeen9584
@deendeen9584 3 ай бұрын
I think it's just to attract people to the youtube channel and other videos
@littleswagg1943
@littleswagg1943 2 ай бұрын
💀
@PadamGurung-wf5xs
@PadamGurung-wf5xs 9 ай бұрын
It's is pydriod 3
@Creative_wiz
@Creative_wiz 9 ай бұрын
No, its vscode but we can do in pydroid too, Pygame library suppprts in pydroid 3
@nasreennadaf7822
@nasreennadaf7822 4 ай бұрын
How to install in pydriod 3? I'm very new to coding
@Helper-15q
@Helper-15q Ай бұрын
Fake 😂😂
@İkoskral
@İkoskral 6 ай бұрын
İt is fake😂😂😂😂😂😂😂
@Creative_wiz
@Creative_wiz 6 ай бұрын
Why do you think so?
@İkoskral
@İkoskral 6 ай бұрын
Because fail
@2dmotion098
@2dmotion098 4 ай бұрын
​@@İkoskralAverage coder. Try to make your own projects instead of copying others, doing a fault and then blamkng them😂😂
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 923 М.
I made Games with Python for 10 Years...
28:52
DaFluffyPotato
Рет қаралды 318 М.
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 6 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 9 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 9 МЛН
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Bro Code
Рет қаралды 152 М.
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Coding With Russ
Рет қаралды 902 М.
Graphics Design Using Python. 25
2:18
Tech Craft Studio
Рет қаралды 2,4 М.
13سبب ليش اكره الصيف | مع براوني انميشن
12:37
Reem animations ريم انميشن
Рет қаралды 613 М.
Python for Beginners - Learn Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 18 МЛН
This NEW AI Chip From Huawei DESTROYS NVIDIA
9:37
Tech Pulse Pro
Рет қаралды 23 М.
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,6 МЛН
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 807 М.
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН