This commit is contained in:
parent
7fe375a190
commit
188be1a678
10
bullet.py
10
bullet.py
|
@ -49,3 +49,13 @@ class BossBullet(Sprite):
|
|||
self.rect.y = bossalien.rect.bottom
|
||||
self.width = ai_settings.bossbullet_width
|
||||
self.height = ai_settings.bossbullet_height
|
||||
|
||||
# 存储用小数表示的子弹位置
|
||||
self.y = float(self.rect.y)
|
||||
|
||||
self.y = bossalien.rect.bottom
|
||||
self.x = bossalien.x
|
||||
|
||||
self.color = ai_settings.bossbullet_color
|
||||
self.speed_factor = ai_settings.bossbullet_speed_factor
|
||||
self.height = ai_settings.bossbullet_height
|
Loading…
Reference in New Issue