This commit is contained in:
袁芳 2021-06-18 08:10:23 +08:00
parent 45a2fe5c24
commit cec38b64f2
1 changed files with 4 additions and 0 deletions

View File

@ -73,3 +73,7 @@ class BossBullet(Sprite):
# 更新rect位置 # 更新rect位置
self.rect.y = self.y self.rect.y = self.y
self.rect.x = self.x self.rect.x = self.x
def draw_bullet(self):
"""在屏幕上绘制子弹"""
pygame.draw.rect(self.screen, self.color, ((self.x, self.y), (self.width, self.height)))