This commit is contained in:
袁芳 2021-06-18 07:55:48 +08:00
parent 7fe375a190
commit 188be1a678
1 changed files with 10 additions and 0 deletions

View File

@ -48,4 +48,14 @@ class BossBullet(Sprite):
self.rect.x = bossalien.x
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