删除 'ship2.py'

This commit is contained in:
206530219 2021-06-17 11:26:09 +08:00
parent cd0e4d6d23
commit 9ca890738f
1 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
def __init__(self, ai_settings, screen):
"""初始化飞船并设置其初始位置"""
super(Ship, self).__init__()
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()