更新 'ship.py'

This commit is contained in:
206530210 2021-06-20 21:34:06 +08:00
parent db3fa811d3
commit 3545271ff6
1 changed files with 3 additions and 0 deletions

View File

@ -19,3 +19,6 @@ class Ship(Sprite):
self.rect.centerx = self.screen_rect.centerx
self.rect.bottom = self.screen_rect.bottom
# 在飞船的属性center中存储小数值
self.center = float(self.rect.centerx)