更新 'ship.py'
This commit is contained in:
parent
316f34455d
commit
db3fa811d3
4
ship.py
4
ship.py
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue