更新 'ship.py'

This commit is contained in:
206530210 2021-06-23 21:21:46 +08:00
parent a3fb5cf846
commit 2e23796c44
1 changed files with 2 additions and 0 deletions

View File

@ -39,3 +39,5 @@ class Ship(Sprite):
if self.moving_up and self.rect.top > 0:
self.centery -= self.ai_settings.ship_speed_factor
if self.moving_down and self.rect.bottom < self.screen_rect.bottom:
self.centery += self.ai_settings.ship_speed_factor