更新 '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

@ -18,4 +18,7 @@ class Ship(Sprite):
# 将每艘新飞船放在屏幕底部中央
self.rect.centerx = self.screen_rect.centerx
self.rect.bottom = self.screen_rect.bottom
# 在飞船的属性center中存储小数值
self.center = float(self.rect.centerx)