更新 'ship.py'

This commit is contained in:
206530210 2021-06-17 20:29:26 +08:00
parent a3058076f0
commit 2ae1cde631
1 changed files with 7 additions and 1 deletions

View File

@ -2,4 +2,10 @@ import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
class Ship(Sprite):
def __init__(self, ai_settings, screen):
"""初始化飞船并设置其初始位置"""
super(Ship, self).__init__()
self.screen = screen
self.ai_settings = ai_setting