更新 'ship.py'

This commit is contained in:
206530210 2021-06-23 21:25:26 +08:00
parent ce997db95a
commit dd6aa607a6
1 changed files with 3 additions and 0 deletions

View File

@ -45,3 +45,6 @@ class Ship(Sprite):
# 根据self.center更新rect对象
self.rect.centerx = self.center
self.rect.centery = self.centery
def center_ship(self):
"""让飞船在屏幕上居中"""