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

КОМЕНТАРІ • 117

  • @brijeshchaudhari7184
    @brijeshchaudhari7184 4 місяці тому +33

    Awesome! Keep it up

  • @SmithNguyen1711
    @SmithNguyen1711 Місяць тому +50

    Wow ! It easier than I thought 😅

  • @_____JUNPark_____
    @_____JUNPark_____ Рік тому +48

    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  Рік тому +14

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

    • @JesusAlmadaKb
      @JesusAlmadaKb 3 місяці тому +3

      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 3 місяці тому +1

      @@JesusAlmadaKbin my opinion, it is better

    • @tardissing5600
      @tardissing5600 3 місяці тому +1

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

  • @Cyberabhi09
    @Cyberabhi09 8 місяців тому +28

    Bg song is awesome 👍 and nostalgic

  • @mhinfo2248
    @mhinfo2248 Рік тому +6

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

  • @tyson7447
    @tyson7447 4 місяці тому +5

    GG
    BRO

  • @jaswantbalian4433
    @jaswantbalian4433 Місяць тому +1

    Awesome!

  • @it_learning_eko
    @it_learning_eko Рік тому +2

    fine , its good

  • @jaswantbalian4433
    @jaswantbalian4433 Місяць тому +1

    GG bro

  • @jaswantbalian4433
    @jaswantbalian4433 Місяць тому +2

    DANG, YOU’RE GOOD

  • @lakshminarayana5932
    @lakshminarayana5932 3 місяці тому +1

    Thanks bro its real!!

  • @kairuannewambui8456
    @kairuannewambui8456 Місяць тому +1

    Learning coding, yeap

  • @Anvitkhandare
    @Anvitkhandare Місяць тому +1

    Bhai aap anniversary pc per kaunsi softwere use karteho

  • @emmanuelekpar
    @emmanuelekpar 10 днів тому

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

  • @user-dt8tw4mh8w
    @user-dt8tw4mh8w Місяць тому +1

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

  • @user-on6ec1bz4r
    @user-on6ec1bz4r Місяць тому

    300/400❤✌️

  • @techgoat618
    @techgoat618 6 днів тому

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

  • @jaswantbalian4433
    @jaswantbalian4433 Місяць тому +2

    Dang, you’re good

  • @samadeyc8693
    @samadeyc8693 Місяць тому

    Looks like Javascript

  • @ptchouhan7963
    @ptchouhan7963 8 місяців тому +6

    want full video

  • @Abdul-it1gt
    @Abdul-it1gt 4 місяці тому +1

    hehehehe

  • @Efcetro.
    @Efcetro. Місяць тому +1

    i didnt know this video was a year ago lol

  • @utsavkhadga2865
    @utsavkhadga2865 2 місяці тому +1

    Bro in 2005 using windows 7

  • @troigame6624
    @troigame6624 2 місяці тому

    Now try closing it without a crash😂

  • @ashersilver7388
    @ashersilver7388 29 днів тому

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

  • @guitC
    @guitC 25 днів тому

    what's the use of learning it?

  • @PinguinAutiste
    @PinguinAutiste Місяць тому +1

    what's your theme? looks good

  • @user-je3oc7sh4j
    @user-je3oc7sh4j 2 місяці тому

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

  • @ToastedHeadcrab
    @ToastedHeadcrab 8 місяців тому +1

    Windows 8 Wut da hellll

  • @rajvijoriya
    @rajvijoriya Рік тому +5

    bhai mere ko bhi coding
    sikhani hai

    • @witty.coder1
      @witty.coder1 5 місяців тому

      Check my channel for tutorials

  • @stawollor-ni4ym
    @stawollor-ni4ym 5 місяців тому +5

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

    • @Creative_wiz
      @Creative_wiz  5 місяців тому +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 18 днів тому

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

  • @Rakesh-hc3tl
    @Rakesh-hc3tl 7 днів тому +1

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

  • @adhiprasanth4628
    @adhiprasanth4628 7 днів тому

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

  • @Trending_videos_1Million
    @Trending_videos_1Million 2 місяці тому

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

  • @RaymondMwaura
    @RaymondMwaura 17 днів тому

    You haven't included the exit code.

  • @Rahuledits09
    @Rahuledits09 11 днів тому

    Bhaii error agya 😂

  • @LinusRamzexs
    @LinusRamzexs Місяць тому

    What did you run?

  • @nabilaaisya205
    @nabilaaisya205 29 днів тому

    Pygame could not be resolved

  • @tigerffshorts
    @tigerffshorts Рік тому +1

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

  • @catzforlife575
    @catzforlife575 7 місяців тому +4

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

  • @thanhhung6701
    @thanhhung6701 8 місяців тому +1

    For children

  • @foujiashareen5784
    @foujiashareen5784 15 днів тому

    I dint understand because i never used pygame librbary

  • @serajulislam4343
    @serajulislam4343 3 місяці тому +1

    😢

  • @sk_cyber_hunter44
    @sk_cyber_hunter44 7 місяців тому +3

    Bro give me a source code of this project

    • @Creative_wiz
      @Creative_wiz  7 місяців тому +3

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

  • @Anak_siapa2511
    @Anak_siapa2511 2 місяці тому

    Engine?

  • @parekvrohlikuskecupem5821
    @parekvrohlikuskecupem5821 2 місяці тому +2

    What is the program name

    • @Creative_wiz
      @Creative_wiz  2 місяці тому +1

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

  • @ivana9386
    @ivana9386 11 місяців тому +1

    Nice music

  • @littleswagg1943
    @littleswagg1943 Місяць тому

    💀

  • @MrChungmen
    @MrChungmen 2 місяці тому +1

    do I need to download any app or software?

    • @Creative_wiz
      @Creative_wiz  2 місяці тому +1

      Yes! Install python and visual studio code editor.

  • @nathiyam4963
    @nathiyam4963 Місяць тому +1

    Error
    No module named 'pygame'

    • @Creative_wiz
      @Creative_wiz  Місяць тому

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

  • @MuhammedAbdulfetah-xo6zu
    @MuhammedAbdulfetah-xo6zu 3 дні тому

    my code is not working

  • @silenttornado-psfour
    @silenttornado-psfour Місяць тому

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

  • @marconisuchiha6504
    @marconisuchiha6504 2 місяці тому +1

    Gente, programação é para poucos 😢

  • @Gallant_Garima54
    @Gallant_Garima54 3 місяці тому +1

    Coming error in 1st line

    • @Creative_wiz
      @Creative_wiz  3 місяці тому

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

  • @H_proshorts
    @H_proshorts 22 дні тому

    Bro what game engine?

    • @qazxi0
      @qazxi0 21 день тому

      💀💀💀

  • @Matchy964
    @Matchy964 16 днів тому

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

    • @Creative_wiz
      @Creative_wiz  16 днів тому

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

  • @Efcetro.
    @Efcetro. Місяць тому +1

    is this vsc or what editor are you using

  • @Vllnz828
    @Vllnz828 Місяць тому +1

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

    • @Creative_wiz
      @Creative_wiz  Місяць тому +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'

  • @kevin__2010
    @kevin__2010 2 місяці тому +1

    Where can i run this code?

    • @Creative_wiz
      @Creative_wiz  2 місяці тому

      We can run both in pc and phone, install python and vs code in pc, for phone install pydroid 3 from playstore.

    • @kevin__2010
      @kevin__2010 2 місяці тому

      Can you do a tutorial pls?

  • @nitinmore8255
    @nitinmore8255 3 місяці тому +1

    no module named Pygame

    • @Creative_wiz
      @Creative_wiz  3 місяці тому

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

    • @nitinmore8255
      @nitinmore8255 3 місяці тому

      @@Creative_wiz thank you so much

  • @thebe1768
    @thebe1768 Місяць тому

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

  • @tharvinofficial8593
    @tharvinofficial8593 18 днів тому

    Bro which website

  • @VERMA_RAJVEER24
    @VERMA_RAJVEER24 5 днів тому

    Which exe?

  • @NirmataAviation
    @NirmataAviation 6 днів тому

    what was this coded on

  • @01juniorpen
    @01juniorpen Місяць тому

    what ur color theme

    • @purekayx
      @purekayx Місяць тому

      probably tokyo nights or one dark pro

  • @purekayx
    @purekayx Місяць тому +1

    ok so why do you share this? nothing impressive.

    • @deendeen9584
      @deendeen9584 Місяць тому

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

  • @Hey31259
    @Hey31259 Місяць тому

    App name

    • @Creative_wiz
      @Creative_wiz  Місяць тому

      vs code editor.

    • @fikilbi
      @fikilbi Місяць тому

      @@Creative_wiz or visual studio code

  • @PadamGurung-wf5xs
    @PadamGurung-wf5xs 7 місяців тому +1

    It's is pydriod 3

    • @Creative_wiz
      @Creative_wiz  7 місяців тому

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

    • @nasreennadaf7822
      @nasreennadaf7822 2 місяці тому

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

  • @Anmol-1032-YT
    @Anmol-1032-YT 2 місяці тому

    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.

  • @shikha3219
    @shikha3219 10 місяців тому +1

    How to run game after programming it

  • @misirikos457
    @misirikos457 4 місяці тому +1

    İt is fake😂😂😂😂😂😂😂

    • @Creative_wiz
      @Creative_wiz  4 місяці тому

      Why do you think so?

    • @misirikos457
      @misirikos457 4 місяці тому

      Because fail

    • @2dmotion098
      @2dmotion098 2 місяці тому +1

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

  • @PranayHasabe
    @PranayHasabe 10 днів тому

    Bad cod😡😡

  • @IceSpike7272YT
    @IceSpike7272YT 4 дні тому

    Fake

  • @jaswantbalian4433
    @jaswantbalian4433 Місяць тому +1

    GG BRO