diff --git a/ship.py b/ship.py index e3f6621..20dbe18 100644 --- a/ship.py +++ b/ship.py @@ -50,3 +50,7 @@ class Ship(Sprite): """让飞船在屏幕上居中""" self.center = self.screen_rect.centerx self.centery = self.screen_rect.bottom + + def blitme(self): + """在指定位置绘制飞船""" + self.screen.blit(self.image, self.rect)