Shoot Bullets - PyGame Thursdays 32

Поділитися
Вставка
  • Опубліковано 4 лип 2024
  • In this video we'll add the ability for our character to shoot bullets for our platformer with Pygame and Python.
    Shooting is super important in most games.
    In this video I'll show you how to do it in Pygame.
    #pygame #codemy #JohnElder
    Timecodes
    0:00​​ - Introduction
    1:00 - Create Bullet Class
    2:02 - Set Bullet Velocity and Range
    2:48 - Load Bullet Image
    6:33 - Set Negative Velocity for Left Bullet
    7:00 - Set Bullet Image Rects
    7:43 - Set Bullet Starting Position
    8:13 - Add Bullet Group
    8:42 - Create Update Function
    9:25 - Destroy Bullet After Range
    10:45 - Define Bullet Group
    11:07 - Update and Draw Bullet Sprites
    11:50 - Pass Bullet Group To Player Class
    12:34 - Pass Bullet Group To Aspen
    13:40 - Set Up Arrow To Shoot
    14:34 - Create Shoot Function
    15:47 - Test It Out
    16:45 - Shorten Range
    17:15 - Slow Down Velocity
    17:38 - Conclusion

КОМЕНТАРІ • 9

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

    Watch PyGame Playlist Subscribe To My UA-cam Channel:
    bit.ly/3PSSreL bit.ly/2IGzvOR
    See More At: Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    Learn to Code at Codemy.com Buy a Codemy T-Shirt!
    Take 50% off with coupon code: youtube50 bit.ly/2VC9WUN
    Get The Code
    bit.ly/469BaDR

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

    Awesome. #forthealgo

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

    thanks for your coding tutorials

  • @Hossein-vx7in
    @Hossein-vx7in Місяць тому

    thank you for your courses
    is this play list over?

  • @Alphabet_-_
    @Alphabet_-_ 2 місяці тому

    THANK U