Pygame - Create game in python || Pygame python tutorial

Sdílet
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

Komentáře • 133

  • @SmithNguyen1711
    @SmithNguyen1711 Před 2 měsíci +77

    Wow ! It easier than I thought 😅

  • @brijeshchaudhari7184
    @brijeshchaudhari7184 Před 5 měsíci +47

    Awesome! Keep it up

  • @_____JUNPark_____
    @_____JUNPark_____ Před rokem +74

    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  Před rokem +21

      Im making a whole game, that will be covered in next part.

    • @JesusAlmadaKb
      @JesusAlmadaKb Před 4 měsíci +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

    • @GoldenSoldierStatue
      @GoldenSoldierStatue Před 4 měsíci +2

      @@JesusAlmadaKbin my opinion, it is better

    • @tardissing5600
      @tardissing5600 Před 3 měsíci +2

      @@JesusAlmadaKbyour code reads better and is cleaner. It just depends on preference as well.

  • @mhinfo2248
    @mhinfo2248 Před rokem +8

    good jobe, عمل جيد وممتاز

  • @Cyberabhi09
    @Cyberabhi09 Před 8 měsíci +33

    Bg song is awesome 👍 and nostalgic

  • @shoxjaxonnurxonov2984
    @shoxjaxonnurxonov2984 Před 13 dny +1

    Like it

  • @it_learning_eko
    @it_learning_eko Před rokem +2

    fine , its good

  • @VirtualWorld-wv2um
    @VirtualWorld-wv2um Před 8 dny +2

    ❤which audio!?

  • @jaswantbalian4433
    @jaswantbalian4433 Před 2 měsíci +2

    DANG, YOU’RE GOOD

  • @jaswantbalian4433
    @jaswantbalian4433 Před 2 měsíci +1

    Awesome!

  • @tyson7447
    @tyson7447 Před 5 měsíci +5

    GG
    BRO

  • @lakshminarayana5932
    @lakshminarayana5932 Před 4 měsíci +1

    Thanks bro its real!!

  • @kairuannewambui8456
    @kairuannewambui8456 Před 2 měsíci +1

    Learning coding, yeap

  • @jaswantbalian4433
    @jaswantbalian4433 Před 2 měsíci +1

    GG bro

  • @jaswantbalian4433
    @jaswantbalian4433 Před 2 měsíci +2

    Dang, you’re good

  • @Rakesh-hc3tl
    @Rakesh-hc3tl Před 28 dny +2

    Bro this program error bro பொய்யானது

  • @SpiderMan-ze2qm
    @SpiderMan-ze2qm Před 8 dny

    Cool! Is there any other games though?

  • @user-dt8tw4mh8w
    @user-dt8tw4mh8w Před 2 měsíci +1

    Это изи, можно любой размер и цвет поставить, почему все так восхищаются?

  • @Efcetro.
    @Efcetro. Před 2 měsíci +1

    i didnt know this video was a year ago lol

  • @user-on6ec1bz4r
    @user-on6ec1bz4r Před měsícem

    300/400❤✌️

  • @Cve0w
    @Cve0w Před 12 hodinami

    Is that vsc ? Or something

  • @user-fr8bk2kd5d
    @user-fr8bk2kd5d Před 6 dny

    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

  • @emmanuelekpar
    @emmanuelekpar Před měsícem

    Bro just use the full name for the variables instead of ev for event. It makes it easier to read your code

  • @Abdul-it1gt
    @Abdul-it1gt Před 4 měsíci +1

    hehehehe

  • @seanclarencesalipong7936

    My brain can't process because there are not many available codes I can get to make the game work. 👁👄👁

  • @samadeyc8693
    @samadeyc8693 Před měsícem

    Looks like Javascript

  • @utsavkhadga2865
    @utsavkhadga2865 Před 2 měsíci +1

    Bro in 2005 using windows 7

  • @ptchouhan7963
    @ptchouhan7963 Před 8 měsíci +6

    want full video

  • @ashersilver7388
    @ashersilver7388 Před měsícem

    Whats the 20 and 5 for? In the draw.circle()

  • @tigerffshorts
    @tigerffshorts Před rokem +1

    Bhi app yeh cooding python ky kis software pr kartey ho ye python idle Hain ya pycharm ya much aur

  • @ToastedHeadcrab
    @ToastedHeadcrab Před 9 měsíci +1

    Windows 8 Wut da hellll

  • @Anvitkhandare
    @Anvitkhandare Před měsícem +2

    Bhai aap anniversary pc per kaunsi softwere use karteho

  • @troigame6624
    @troigame6624 Před 2 měsíci

    Now try closing it without a crash😂

  • @rajvijoriya
    @rajvijoriya Před rokem +5

    bhai mere ko bhi coding
    sikhani hai

  • @guitC
    @guitC Před měsícem

    what's the use of learning it?

  • @techgoat618
    @techgoat618 Před 27 dny

    Nice example but using vim on a MacOS system, then “x” out fails to close the pygame instance, is there a simple fix?

  • @SatishChandra-zo6dg
    @SatishChandra-zo6dg Před 3 dny

    Plg give anyone app link or app name to me

  • @serajulislam4343
    @serajulislam4343 Před 4 měsíci +1

    😢

  • @stawollor-ni4ym
    @stawollor-ni4ym Před 5 měsíci +5

    I did this, but it doesn't work. Please tell me how. An error keeps occurring in line 3.

    • @Creative_wiz
      @Creative_wiz  Před 5 měsíci +8

      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 Před měsícem

      @@Creative_wiz ye copy paste krdu to chal jayega kya ?

  • @LinusRamzexs
    @LinusRamzexs Před měsícem

    What did you run?

  • @sk_cyber_hunter44
    @sk_cyber_hunter44 Před 8 měsíci +3

    Bro give me a source code of this project

    • @Creative_wiz
      @Creative_wiz  Před 7 měsíci +3

      Sure, this a galaxy attack, shooting game. Source code is available on my telegram channel. So please join.

  • @user-je3oc7sh4j
    @user-je3oc7sh4j Před 3 měsíci

    I dont need that tutorial i just need tutorial for copilot's help

  • @thanhhung6701
    @thanhhung6701 Před 9 měsíci +1

    For children

  • @Anak_siapa2511
    @Anak_siapa2511 Před 2 měsíci

    Engine?

  • @catzforlife575
    @catzforlife575 Před 8 měsíci +4

    After py.draw.circle the numbers are 20 5 what's after that?

  • @ciboire699
    @ciboire699 Před měsícem +1

    what's your theme? looks good

  • @nbilable
    @nbilable Před měsícem

    Pygame could not be resolved

  • @Trending_videos_1Million
    @Trending_videos_1Million Před 2 měsíci

    1 Make pyyoutube as py
    2 End
    .
    .
    .
    .
    .
    😎 Ma girya hoya banda jama neech balye

  • @RaymondMwaura
    @RaymondMwaura Před měsícem

    You haven't included the exit code.

  • @littleswagg1943
    @littleswagg1943 Před měsícem

    💀

  • @foujiashareen5784
    @foujiashareen5784 Před měsícem

    I dint understand because i never used pygame librbary

  • @Itzkamisenpai
    @Itzkamisenpai Před 2 dny

    You just create infinite loop☠️

  • @Rahuledits09
    @Rahuledits09 Před měsícem

    Bhaii error agya 😂

  • @MuhammedAbdulfetah-xo6zu

    my code is not working

  • @adhiprasanth4628
    @adhiprasanth4628 Před 28 dny

    Actually here not code just importing from pygame that why look simple

  • @silenttornado-psfour
    @silenttornado-psfour Před 2 měsíci

    I cant see screen, col, pos, 24, 5, and it cuts off after five, help

  • @parekvrohlikuskecupem5821
    @parekvrohlikuskecupem5821 Před 3 měsíci +2

    What is the program name

    • @Creative_wiz
      @Creative_wiz  Před 3 měsíci +1

      Its python programming, in this code pygame library of python is used.

  • @ivana9386
    @ivana9386 Před rokem +1

    Nice music

  • @MrChungmen
    @MrChungmen Před 3 měsíci +1

    do I need to download any app or software?

    • @Creative_wiz
      @Creative_wiz  Před 3 měsíci +1

      Yes! Install python and visual studio code editor.

  • @Matchy964
    @Matchy964 Před měsícem

    Can anyone tell whats the name of his vs code theme?

    • @Creative_wiz
      @Creative_wiz  Před měsícem

      Hi, its synthWave 84 theme, and make sure to activate glow effect.

  • @Gallant_Garima54
    @Gallant_Garima54 Před 3 měsíci +1

    Coming error in 1st line

    • @Creative_wiz
      @Creative_wiz  Před 3 měsíci

      Need to install pygame library first, ah goto terminal and run 'pip install pygame' command.

  • @Metabolism-ev7dj
    @Metabolism-ev7dj Před 6 dny +1

    What type of python is this

    • @Creative_wiz
      @Creative_wiz  Před 5 dny

      @@Metabolism-ev7dj its pygame library of python.

  • @marconisuchiha6504
    @marconisuchiha6504 Před 3 měsíci +1

    Gente, programação é para poucos 😢

  • @nathiyam4963
    @nathiyam4963 Před 2 měsíci +1

    Error
    No module named 'pygame'

    • @Creative_wiz
      @Creative_wiz  Před 2 měsíci

      Please install pygame library,
      Goto terminal and run this command👉
      'pip install pygame'

  • @islamhassan6046
    @islamhassan6046 Před 6 dny

    there is no library called pygame

    • @Creative_wiz
      @Creative_wiz  Před 6 dny

      Please install pygame library before running the code.

  • @Vllnz828
    @Vllnz828 Před měsícem +1

    when i run it it says no module name pygame what should i do?

    • @Creative_wiz
      @Creative_wiz  Před měsícem +1

      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'

  • @Efcetro.
    @Efcetro. Před 2 měsíci +1

    is this vsc or what editor are you using

  • @Kevin-k8j
    @Kevin-k8j Před 3 měsíci +1

    Where can i run this code?

    • @Creative_wiz
      @Creative_wiz  Před 3 měsíci

      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 Před 3 měsíci

      Can you do a tutorial pls?

  • @thebe1768
    @thebe1768 Před 2 měsíci

    it didn'T work about me lol and i don't even can find out the mistake

  • @Shorts-n3-l5p
    @Shorts-n3-l5p Před měsícem

    Bro what game engine?

    • @qazxi0
      @qazxi0 Před měsícem

      💀💀💀

  • @nitinmore8255
    @nitinmore8255 Před 4 měsíci +1

    no module named Pygame

    • @Creative_wiz
      @Creative_wiz  Před 4 měsíci

      Goto to terminal and install the pygame library first => pip install pygame

    • @nitinmore8255
      @nitinmore8255 Před 4 měsíci

      @@Creative_wiz thank you so much

  • @NirmataAviation
    @NirmataAviation Před 27 dny

    what was this coded on

  • @01juniorpen
    @01juniorpen Před 2 měsíci

    what ur color theme

    • @purekayx
      @purekayx Před 2 měsíci

      probably tokyo nights or one dark pro

  • @tharvinofficial8593
    @tharvinofficial8593 Před měsícem

    Bro which website

  • @purekayx
    @purekayx Před 2 měsíci +1

    ok so why do you share this? nothing impressive.

    • @deendeen9584
      @deendeen9584 Před 2 měsíci

      I think it's just to attract people to the youtube channel and other videos

  • @VERMA_RAJVEER24
    @VERMA_RAJVEER24 Před 26 dny

    Which exe?

  • @Hey31259
    @Hey31259 Před 2 měsíci

    App name

    • @Creative_wiz
      @Creative_wiz  Před 2 měsíci

      vs code editor.

    • @fikilbi
      @fikilbi Před 2 měsíci

      @@Creative_wiz or visual studio code

  • @PadamGurung-wf5xs
    @PadamGurung-wf5xs Před 7 měsíci +1

    It's is pydriod 3

    • @Creative_wiz
      @Creative_wiz  Před 7 měsíci

      No, its vscode but we can do in pydroid too, Pygame library suppprts in pydroid 3

    • @nasreennadaf7822
      @nasreennadaf7822 Před 3 měsíci

      How to install in pydriod 3? I'm very new to coding

  • @Helper-15q
    @Helper-15q Před dnem

    Fake 😂😂

  • @PranayHasabe
    @PranayHasabe Před měsícem

    Bad cod😡😡

  • @İkoskral
    @İkoskral Před 4 měsíci +1

    İt is fake😂😂😂😂😂😂😂

    • @Creative_wiz
      @Creative_wiz  Před 4 měsíci

      Why do you think so?

    • @İkoskral
      @İkoskral Před 4 měsíci

      Because fail

    • @2dmotion098
      @2dmotion098 Před 3 měsíci +1

      ​@@İkoskralAverage coder. Try to make your own projects instead of copying others, doing a fault and then blamkng them😂😂

  • @shikha3219
    @shikha3219 Před 11 měsíci +1

    How to run game after programming it

  • @IceSpike7272YT
    @IceSpike7272YT Před 25 dny

    Fake

  • @Anmol-1032-YT
    @Anmol-1032-YT Před 3 měsíci

    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.

  • @jaswantbalian4433
    @jaswantbalian4433 Před 2 měsíci +1

    GG BRO