Pong Game Tutorial using Pygame & Python - For beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

ความคิดเห็น • 19

  • @programmingwithnick
    @programmingwithnick  11 หลายเดือนก่อน +2

    I hope you took away lots from this video. Let me know below!
    PS: I'm creating an OOP course! Sign up at programmingwithnick.com/course for early access and a 50% launch discount.

  • @LookNumber9
    @LookNumber9 10 หลายเดือนก่อน +2

    Beautifully explained. Thank you!

  • @alexpapshev
    @alexpapshev 29 วันที่ผ่านมา

    Thanks prof! Great explained! You are top!

  • @MABSGAMERTAG
    @MABSGAMERTAG 7 หลายเดือนก่อน +1

    Thanks so much! Great video and well explained.

  • @Tims_Projects
    @Tims_Projects 2 ปีที่แล้ว +2

    Fantastic Nick.
    I remember when pong came out to play on the TV, haha. I think I prefer the square ball ;)

    • @programmingwithnick
      @programmingwithnick  ปีที่แล้ว

      Thanks Tim for the feedback and the support. It took me a lot of time to prepare this video because I am learning how to create animations at the same time, but as I get better to it I will post more often.
      I was not around when Pong was released but I remember playing it when I was a kid. Now a teenager can program it in an hour. How things have changed..

  • @MrWolf-ke3gv
    @MrWolf-ke3gv 4 หลายเดือนก่อน

    Thank you! this was so much fun

  • @kibs_neville
    @kibs_neville 10 หลายเดือนก่อน +2

    Thanks for the video. Can I please access the Pygame cheatsheet.

  • @David-fq5un
    @David-fq5un 5 หลายเดือนก่อน

    Pretty good. Would like the game loop to look a bit smaller...dole out more functions. Try to put the event code in it's own function, but then the user paddle wouldn't work....

  • @timothyforry2222
    @timothyforry2222 9 หลายเดือนก่อน +2

    idk if anyone else has this error, but when i type ball = pygame.rect i get a error that there is no callback. The game screen pops up for a half a second then goes away. After a couple hours of debugging its because you must type in ball = pygame.Rect because you have to access the upper level of the module while lower case r accesses the lower level. solved the problem. hope this helps others

    • @delphi.office
      @delphi.office 8 หลายเดือนก่อน

      python is casesensitiv please use: ball = pygame.Rect ....
      pygame.Rect is a function to set the rectangle

  • @yashwanth8269
    @yashwanth8269 7 หลายเดือนก่อน

    Respect Sir

  • @birdduck3314
    @birdduck3314 ปีที่แล้ว +1

    hi i have a problem when the bot move down the screen he keeps disspeare and the player glitch on the corner of the screen and the ball sometimes start moving glitchy

  • @merveozdas1193
    @merveozdas1193 5 หลายเดือนก่อน

    Hi, thank you for sharing, but when I tried the code, it wis working when I touched to the mouseor pres to the space, it is not working itself like yours,do you know why?

  • @gunawanwibisono5084
    @gunawanwibisono5084 4 หลายเดือนก่อน

    Thanks

  • @10mscourse19
    @10mscourse19 8 หลายเดือนก่อน

    Thanks Nick

  • @delphi.office
    @delphi.office 8 หลายเดือนก่อน

    Hi Nick, thanks - very well explained.
    Do you have any idea how we can change the AI so that the player has a chance of winning a point?

    • @programmingwithnick
      @programmingwithnick  8 หลายเดือนก่อน +2

      There are many ways to do it. One simple way is to reduce the speed of the cpu paddle, or increase the speed of the ball. Another way is to move the cpu paddle only if it has reached the middle of the screen in the x axis and so on. Use your imagination.

  • @xanderpixel281
    @xanderpixel281 11 หลายเดือนก่อน

    If screen_width and height are constants, shouldn't they be with capital letters?