更新 'ship.py'

This commit is contained in:
206530210 2021-06-23 21:28:02 +08:00
parent f5cfd6f1ca
commit 01c4a6df39
1 changed files with 4 additions and 0 deletions

View File

@ -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)