更新 'ship'

This commit is contained in:
201110504 2021-06-24 09:07:33 +08:00
parent 4048582569
commit 646fc79239
1 changed files with 2 additions and 1 deletions

3
ship
View File

@ -43,4 +43,5 @@ class Ship(Sprite):
def center_ship(self):
"""让飞船在屏幕底端局中"""
self.rect.midbottom = self.screen_rect.midbottom
self.x = float(self.rect.x)
self.x = float(self.rect.x)