更新 'ship'

This commit is contained in:
201110504 2021-06-20 22:43:07 +08:00
parent d74670e912
commit bde30d2268
1 changed files with 7 additions and 2 deletions

5
ship
View File

@ -37,3 +37,8 @@ class Ship:
def blitme(self):
"""在指定位置绘制飞船"""
self.screen.blit(self.image, self.rect)
def center_ship(self):
"""让飞船在屏幕底端局中"""
self.rect.midbottom = self.screen_rect.midbottom
self.x = float(self.rect.x)