更新 'ship.py'

This commit is contained in:
206530210 2021-06-20 21:29:49 +08:00
parent 316f34455d
commit db3fa811d3
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ class Ship(Sprite):
"""初始化飞船并设置其初始位置"""
super(Ship, self).__init__()
self.screen = screen
self.ai_settings = ai_settings
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()