diff --git a/ship.py b/ship.py index a3e864a..5b8d514 100644 --- a/ship.py +++ b/ship.py @@ -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