更新 'ship.py'

This commit is contained in:
206530210 2021-06-23 16:12:03 +08:00
parent 41391dbd71
commit b61138d9e7
1 changed files with 1 additions and 0 deletions

View File

@ -35,3 +35,4 @@ class Ship(Sprite):
if self.moving_right and self.rect.right < self.screen_rect.right:
self.center += self.ai_settings.ship_speed_factor
if self.moving_left and self.rect.left > 0:
self.center -= self.ai_settings.ship_speed_factor