更新 'ship.py'
This commit is contained in:
parent
a3fb5cf846
commit
2e23796c44
2
ship.py
2
ship.py
|
@ -39,3 +39,5 @@ class Ship(Sprite):
|
||||||
|
|
||||||
if self.moving_up and self.rect.top > 0:
|
if self.moving_up and self.rect.top > 0:
|
||||||
self.centery -= self.ai_settings.ship_speed_factor
|
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
|
||||||
|
|
Loading…
Reference in New Issue