更新 'ship.py'

This commit is contained in:
206530210 2021-06-21 21:53:39 +08:00
parent f8a61e888f
commit 0e1254b434
1 changed files with 4 additions and 0 deletions

View File

@ -22,4 +22,8 @@ class Ship(Sprite):
# 在飞船的属性center中存储小数值
self.center = float(self.rect.centerx)
self.centery = float(self.rect.centery)
# 移动标志
self.moving_right = False
self.moving_left = False