Pygame - Create game in python || Pygame python tutorial

  Рет қаралды 1,056,375

Creativewiz

Creativewiz

Күн бұрын

Пікірлер: 262
@the_x1_sachann
@the_x1_sachann 4 ай бұрын
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()
@IfYouEscapedYTKidsIWillGetYou
@IfYouEscapedYTKidsIWillGetYou 2 ай бұрын
bro, who the hell uses turtle who has more than 2yrs experience
@LowerGdev
@LowerGdev 2 ай бұрын
Kkk
@Everyo113
@Everyo113 Ай бұрын
❤it works
@theterpenater6414
@theterpenater6414 Ай бұрын
​@@LowerGdevthat's crazy
@aakashkumar-ry8um
@aakashkumar-ry8um Ай бұрын
Bro tell me - Kahan se sikhi kya
@brijeshchaudhari7184
@brijeshchaudhari7184 9 ай бұрын
Awesome! Keep it up
@keonb863
@keonb863 2 ай бұрын
meanwhile me print ("Hello world")
@SilkySnow9
@SilkySnow9 Ай бұрын
Trust me that's the start of every legends
@Idk_ryl
@Idk_ryl Ай бұрын
​@@SilkySnow9bith go kitchen and shut up
@Shlokkakade8
@Shlokkakade8 Ай бұрын
And I'm doing print (5)
@nikola8656
@nikola8656 Ай бұрын
Same 😢
@Shlokkakade8
@Shlokkakade8 Ай бұрын
@nikola8656 us bro us
@mhinfo2248
@mhinfo2248 Жыл бұрын
good jobe, عمل جيد وممتاز
@LXNGVXB
@LXNGVXB 7 ай бұрын
yeah
@SmithNguyen42
@SmithNguyen42 7 ай бұрын
Wow ! It easier than I thought 😅
@himaMyth
@himaMyth 3 ай бұрын
how abt the script?
@SmithNguyen42
@SmithNguyen42 3 ай бұрын
​@@himaMyth 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.
@himaMyth
@himaMyth 3 ай бұрын
@@SmithNguyen42 oooo. Thank you.
@IfYouEscapedYTKidsIWillGetYou
@IfYouEscapedYTKidsIWillGetYou 2 ай бұрын
@@himaMyth yes its very easy he meant to program
@8bitegaming143
@8bitegaming143 20 күн бұрын
No it's difficult but easy who take it easy
@Molodykwithaxe_prod_HD
@Molodykwithaxe_prod_HD 3 ай бұрын
Good!!! Thabks very much
@S-Lomar
@S-Lomar 14 күн бұрын
Thanks for sharing ❤❤❤😂😂😂😂❤❤❤❤❤😢😢😮😮😮😅😅😊😊😊😊😊😊
@Cyberabhi09
@Cyberabhi09 Жыл бұрын
Bg song is awesome 👍 and nostalgic
@Itsmejawaddarwish
@Itsmejawaddarwish 24 күн бұрын
good job, Creative_wiz
@_____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 8 ай бұрын
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 8 ай бұрын
@@JesusAlmadaKbin my opinion, it is better
@tardissing5600
@tardissing5600 8 ай бұрын
@@JesusAlmadaKbyour code reads better and is cleaner. It just depends on preference as well.
@codingmf1980
@codingmf1980 2 ай бұрын
G
@MrChungmen
@MrChungmen 8 ай бұрын
do I need to download any app or software?
@Creative_wiz
@Creative_wiz 7 ай бұрын
Yes! Install python and visual studio code editor.
@ElderBow
@ElderBow Ай бұрын
Software/Text editor you are using?
@Creative_wiz
@Creative_wiz Ай бұрын
Vs code editor.
@SuperCuber-xu4xp
@SuperCuber-xu4xp Ай бұрын
@@Creative_wizi thought u use pycharm
@anitareganyalor
@anitareganyalor Ай бұрын
​@@Creative_wiz how did you get pygame in vs code pls
@AnshumanGarg007
@AnshumanGarg007 2 ай бұрын
from where you are executing
@mahidmunna01
@mahidmunna01 3 ай бұрын
Your code is knowledge is strength ❤
@erezberez17
@erezberez17 9 күн бұрын
import turtle import colorsys # Initialize the turtle turtle.speed(0) turtle.bgcolor("black") # Initialize hue value h = 0 # Outer loop for 16 repetitions for i in range(16): # Inner loop for drawing 18 shapes for j in range(18): # Get the color using HSV to RGB conversion c = colorsys.hsv_to_rgb(h, 1, 1) turtle.color(c) # Increment hue for the next color h += 0.05 # Draw shapes turtle.right(0) turtle.circle(150 - j * 6, 90) turtle.left(90) turtle.circle(150 - j * 6, 90) turtle.right(180) turtle.circle(40, 24) # Complete the drawing turtle.done()
@Creative_wiz
@Creative_wiz 9 күн бұрын
Nice
@GregBubak
@GregBubak 4 күн бұрын
woah thanks
@EstoloReal
@EstoloReal 4 күн бұрын
That was fast im a little bit slower 😂
@it_learning_eko
@it_learning_eko Жыл бұрын
fine , its good
@erick-ict
@erick-ict Ай бұрын
l want to learn programming
@erick-ict
@erick-ict Ай бұрын
How can l learn programming but I don't have money, l need a sponsor
@FUNTIME-jf7rv
@FUNTIME-jf7rv 22 күн бұрын
​@@erick-ictor you can read books lots of information there I'd recommend the python Bible 7 in 1 it has most if not everything you will ever need for python
@corkycraft9067
@corkycraft9067 12 күн бұрын
@@erick-ict u dont need money, u just need a laptop and a yt.BOOM!!! You are programmer.
@tyson7447
@tyson7447 9 ай бұрын
GG BRO
@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 3 ай бұрын
Bro vs code pr phython ki bhi coding kr skte
@jeetsasmal9475
@jeetsasmal9475 8 күн бұрын
Keep up it
@Anvitkhandare
@Anvitkhandare 6 ай бұрын
Bhai aap anniversary pc per kaunsi softwere use karteho
@islamhassan6046
@islamhassan6046 4 ай бұрын
visual studio Code
@DizzyJay-sm4rq
@DizzyJay-sm4rq Ай бұрын
Which application did you use
@thefoxicreator4556
@thefoxicreator4556 Ай бұрын
Did you mean the python library or the code editor?
@stawollor-ni4ym
@stawollor-ni4ym 10 ай бұрын
I did this, but it doesn't work. Please tell me how. An error keeps occurring in line 3.
@Creative_wiz
@Creative_wiz 10 ай бұрын
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 5 ай бұрын
@@Creative_wiz ye copy paste krdu to chal jayega kya ?
@MrNotYt7
@MrNotYt7 15 күн бұрын
Which app is this ?
@Creative_wiz
@Creative_wiz 11 күн бұрын
Vs code editor.
@danielonyedikachiokwandu6927
@danielonyedikachiokwandu6927 3 ай бұрын
Most you be online using pycharm???
@dynahzm
@dynahzm 22 күн бұрын
looks like VS code to me
@parekvrohlikuskecupem5821
@parekvrohlikuskecupem5821 8 ай бұрын
What is the program name
@Creative_wiz
@Creative_wiz 7 ай бұрын
Its python programming, in this code pygame library of python is used.
@TechBox2026
@TechBox2026 3 ай бұрын
Good
@mr.mortaza
@mr.mortaza 2 ай бұрын
wtf it really works wowwwwowowowowowoow
@mitosisforever6428
@mitosisforever6428 Ай бұрын
create the window, events like mouse get position and draw a circle with that position. i understand that
@Efcetro.
@Efcetro. 7 ай бұрын
is this vsc or what editor are you using
@Creative_wiz
@Creative_wiz 7 ай бұрын
Yes! It is vs code
@Efcetro.
@Efcetro. 7 ай бұрын
k
@GregBubak
@GregBubak 4 күн бұрын
2:00
@CodewithAnHome
@CodewithAnHome 3 ай бұрын
nice video
@QuackQuack6
@QuackQuack6 6 ай бұрын
what's your theme? looks good
@Creative_wiz
@Creative_wiz 6 ай бұрын
Its Synthwave 84
@lakshminarayana5932
@lakshminarayana5932 8 ай бұрын
Thanks bro its real!!
@priyanshuverma5229
@priyanshuverma5229 Ай бұрын
Which application
@Creative_wiz
@Creative_wiz Ай бұрын
Vs code editor
@Tyson08-xt
@Tyson08-xt 2 ай бұрын
Software name??
@Creative_wiz
@Creative_wiz 2 ай бұрын
Vs code editor with 'synthe wave 84' theme
@jaswantbalian4433
@jaswantbalian4433 6 ай бұрын
Awesome!
@catzforlife575
@catzforlife575 Жыл бұрын
After py.draw.circle the numbers are 20 5 what's after that?
@mestresplinter2467
@mestresplinter2467 8 ай бұрын
radius and line width
@jasoneloim2244
@jasoneloim2244 Ай бұрын
@@mestresplinter2467 what should I write? 🤧
@shoxjaxonnurxonov2984
@shoxjaxonnurxonov2984 4 ай бұрын
Like it
@SpiderMan-ze2qm
@SpiderMan-ze2qm 4 ай бұрын
Cool! Is there any other games though?
@Creative_wiz
@Creative_wiz 4 ай бұрын
Yes.
@ashersilver7388
@ashersilver7388 6 ай бұрын
Whats the 20 and 5 for? In the draw.circle()
@erty-hc6jb
@erty-hc6jb 3 ай бұрын
center and radius. you can check the pygame docs for more info too
@kairuannewambui8456
@kairuannewambui8456 6 ай бұрын
Learning coding, yeap
@ptchouhan7963
@ptchouhan7963 Жыл бұрын
want full video
@rajchouhan5618
@rajchouhan5618 21 сағат бұрын
Konsa version h ye
@Kevin-k8j
@Kevin-k8j 7 ай бұрын
Where can i run this code?
@Creative_wiz
@Creative_wiz 7 ай бұрын
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 7 ай бұрын
Can you do a tutorial pls?
@VirtualWorld-wv2um
@VirtualWorld-wv2um 4 ай бұрын
❤which audio!?
@rajvijoriya
@rajvijoriya Жыл бұрын
bhai mere ko bhi coding sikhani hai
@witty.coder1
@witty.coder1 10 ай бұрын
Check my channel for tutorials
@HikayemBitmedi-mj1qg
@HikayemBitmedi-mj1qg 3 ай бұрын
Wow!Thats cool😮
@road_to_success5416
@road_to_success5416 3 ай бұрын
Which code editor or ide you use ?
@Creative_wiz
@Creative_wiz 3 ай бұрын
Its vs code editor with 'synthe wave 84' theme
@oldguitarist-pl
@oldguitarist-pl 6 ай бұрын
what's the use of learning it?
@ImranMohammed-v6i
@ImranMohammed-v6i 2 ай бұрын
Please which app is this?
@oustted
@oustted 2 ай бұрын
Python with pygame
@Art1cG
@Art1cG 4 ай бұрын
What type of python is this
@Creative_wiz
@Creative_wiz 4 ай бұрын
@@Art1cG its pygame library of python.
@stayingintherain01
@stayingintherain01 2 ай бұрын
0:11
@ervanrara4162
@ervanrara4162 16 күн бұрын
Print(input('hello'))
@LinusRamzexs
@LinusRamzexs 6 ай бұрын
What did you run?
@HelloCheck0840
@HelloCheck0840 16 күн бұрын
Blud is going to get hit with a 100 errors after trying to close the program
@Cve0w
@Cve0w 4 ай бұрын
Is that vsc ? Or something
@jaswantbalian4433
@jaswantbalian4433 6 ай бұрын
GG bro
@Shorts-n3-l5p
@Shorts-n3-l5p 5 ай бұрын
Bro what game engine?
@urchiin
@urchiin 5 ай бұрын
💀💀💀
@Uttam12340
@Uttam12340 4 ай бұрын
How can i start it
@Creative_wiz
@Creative_wiz 2 ай бұрын
Start with basic python
@baddanethebeast2458
@baddanethebeast2458 Ай бұрын
What do you type that in
@angpanha3566
@angpanha3566 3 ай бұрын
Wait, so it draws a circle everytime the mouse button is released?
@jaswantbalian4433
@jaswantbalian4433 6 ай бұрын
DANG, YOU’RE GOOD
@Techmind009
@Techmind009 2 ай бұрын
❤❤ 🇵🇰 🇵🇰 🇵🇰 🇵🇰 keep it up
@aastha7270
@aastha7270 22 күн бұрын
website name
@AchillesMarasigan
@AchillesMarasigan 25 күн бұрын
I wana try ît
@sohrabansari532
@sohrabansari532 4 күн бұрын
File save kaise karte hai
@jaswantbalian4433
@jaswantbalian4433 6 ай бұрын
Dang, you’re good
@Shemtoi-v2g
@Shemtoi-v2g 6 ай бұрын
🎉❤😂🎉0aaa
@VictorAgbai-g9z
@VictorAgbai-g9z 3 ай бұрын
How can I learn
@zachyy4791
@zachyy4791 4 ай бұрын
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 4 ай бұрын
Relaunch active terminal and task manager can close it, but yeah, he did forget to add a way to close it
@zachyy4791
@zachyy4791 4 ай бұрын
@@GrowMode_YT that sure is a way but I guess they should just add it, should be second nature really
@alyme_r
@alyme_r 2 ай бұрын
just select the terminal and do ctrl+c
@niksbiedrins7741
@niksbiedrins7741 4 ай бұрын
pygame good for small projects horrible for big projects
@tharvinofficial8593
@tharvinofficial8593 5 ай бұрын
Bro which website
@X-AK.02010
@X-AK.02010 5 ай бұрын
Vs code
@emmanuelekpar
@emmanuelekpar 5 ай бұрын
Bro just use the full name for the variables instead of ev for event. It makes it easier to read your code
@Hey31259
@Hey31259 7 ай бұрын
App name
@Creative_wiz
@Creative_wiz 7 ай бұрын
vs code editor.
@fikilbi
@fikilbi 6 ай бұрын
@@Creative_wiz or visual studio code
@JayveeAndongan
@JayveeAndongan Ай бұрын
As 1 is 2 for 3
@seanclarencesalipong7936
@seanclarencesalipong7936 4 ай бұрын
My brain can't process because there are not many available codes I can get to make the game work. 👁👄👁
@sian-n5n
@sian-n5n Ай бұрын
Which IDE is this
@techgoat618
@techgoat618 5 ай бұрын
Nice example but using vim on a MacOS system, then “x” out fails to close the pygame instance, is there a simple fix?
@maln4060
@maln4060 15 күн бұрын
😮I make it in phone pydroid 3 it runs well but shows me only black screen when I though the screen circles don't show
@NirmataAviation
@NirmataAviation 5 ай бұрын
what was this coded on
@Creative_wiz
@Creative_wiz 5 ай бұрын
Vs code editor
@charlita25
@charlita25 3 ай бұрын
🎮🕹
@krvinandanofficial254
@krvinandanofficial254 6 ай бұрын
300/400❤✌️
@Shreyash010s
@Shreyash010s Ай бұрын
Free fire❤
@marconisuchiha6504
@marconisuchiha6504 7 ай бұрын
Gente, programação é para poucos 😢
@2ch921
@2ch921 7 ай бұрын
É nada
@marconisuchiha6504
@marconisuchiha6504 7 ай бұрын
@@2ch921 😂😂😂😂
@Anak_siapa2511
@Anak_siapa2511 7 ай бұрын
Engine?
@terimotff8320
@terimotff8320 2 ай бұрын
Mobile run ho sakta he
@Creative_wiz
@Creative_wiz 2 ай бұрын
@@terimotff8320 Haa, pydroid app pe run hoga, make sure to install pygame library.
@skcyberhunter44
@skcyberhunter44 Жыл бұрын
Bro give me a source code of this project
@Creative_wiz
@Creative_wiz Жыл бұрын
Sure, this a galaxy attack, shooting game. Source code is available on my telegram channel. So please join.
@evanskhaemba1276
@evanskhaemba1276 Ай бұрын
Been stuck on print hello world😂
@gorangghosh1293
@gorangghosh1293 4 ай бұрын
Laptop main tumhara code kaam nhi kar raha hai
@samadeyc8693
@samadeyc8693 6 ай бұрын
Looks like Javascript
@Karan-yy4hy
@Karan-yy4hy 7 күн бұрын
It showing NameError: name 'true' is not defined, even in 4th line i used capital T for True, what's the solution for this?
@Rakesh-hc3tl
@Rakesh-hc3tl 5 ай бұрын
Bro this program error bro பொய்யானது
@SatishChandra-zo6dg
@SatishChandra-zo6dg 4 ай бұрын
Plg give anyone app link or app name to me
@Vllnz828
@Vllnz828 6 ай бұрын
when i run it it says no module name pygame what should i do?
@Creative_wiz
@Creative_wiz 6 ай бұрын
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'
@jerrytom2157
@jerrytom2157 2 ай бұрын
Damn all that work for 3 rounds
@anitareganyalor
@anitareganyalor Ай бұрын
Is this vs code
@Creative_wiz
@Creative_wiz Ай бұрын
Yes.
@OndrejFilip-z2y
@OndrejFilip-z2y Күн бұрын
Rare moment of someone not using chatgpt and copying other codes
@ivana9386
@ivana9386 Жыл бұрын
Nice music
@01juniorpen
@01juniorpen 6 ай бұрын
what ur color theme
@purekayx
@purekayx 6 ай бұрын
probably tokyo nights or one dark pro
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Coding With Russ
Рет қаралды 974 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 638 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 15 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 17 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 51 МЛН
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 1,5 МЛН
Learning C++ by making a Game... in 1 Week?!
10:14
Floky
Рет қаралды 591 М.
Somebody emailed me a trojan virus
14:06
Bog
Рет қаралды 1,1 МЛН
AI Boxing Got me Wheezing
15:06
cozmouz
Рет қаралды 499 М.
Level 1 to 100 Impossible Puzzles
17:25
Hafu Go
Рет қаралды 10 МЛН
Let's code a beginner Python BANKING PROGRAM 💰
15:01
Bro Code
Рет қаралды 278 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
The Fire Quiz | Geometry dash 2.2
8:52
Mulpan
Рет қаралды 111 М.
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,7 МЛН