diff --git a/bullet.py b/bullet.py index 61ed5ff..cb10ee3 100644 --- a/bullet.py +++ b/bullet.py @@ -73,3 +73,7 @@ class BossBullet(Sprite): # 更新rect位置 self.rect.y = self.y self.rect.x = self.x + + def draw_bullet(self): + """在屏幕上绘制子弹""" + pygame.draw.rect(self.screen, self.color, ((self.x, self.y), (self.width, self.height)))