test
This commit is contained in:
@ -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:
|
||||
|
||||
2
ship.py
2
ship.py
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user