This commit is contained in:
206530220 2021-06-18 14:48:18 +08:00
parent 45286bb9ad
commit 441c81dcc3
1 changed files with 3 additions and 1 deletions

View File

@ -9,4 +9,6 @@ class Ship(Sprite):
self.screen = screen
self.ai_settings = ai_settings
self.image = pygame.image.load('images/ship.png')
self.rect = self.image.get_rect()
self.screen_rect = screen.get_rect()