删除 'ship2.py'
This commit is contained in:
parent
cd0e4d6d23
commit
9ca890738f
14
ship2.py
14
ship2.py
|
@ -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()
|
Loading…
Reference in New Issue