Shoot Bullets - PyGame Thursdays 32

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

Watch PyGame Playlist Subscribe To My YouTube Channel:
See More At: Join My Facebook Group:
Get The Code

Codemycom
Автор

thank you for your courses
is this play list over?

Hossein-vxin