This commit is contained in:
2021-04-05 19:51:36 +02:00
parent 9391f82df8
commit 25e33714e0
2 changed files with 1 additions and 4 deletions

View File

@ -20,9 +20,6 @@ class AlienInvasion:
self.ship = Ship(self)
# Set the background color.
self.bg_color = (230, 230, 230)
def run_game(self):
"""Start main loop for the game."""
while True:

View File

@ -11,7 +11,7 @@ class Ship:
self.screen_rect = ai_game.screen.get_rect()
# Load the ship image and get its rect.
self.image = pygame.image.load('images/ship.bmp')
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.image.get_rect()
# Start each new ship at the bottom center of the screen.