#-*- coding: UTF-8 -*- import pygame import os import sys import time import abc class Settings(object): def __init__(self): self.bgImage = pygame.image.load("./images/background.png")#背景图 self.bgImageWidth = self.bgImage.get_rect()[2] #背景宽度 self.bgImageHeight = self.bgImage.get_rect()[3] #背景图高 self.start = pygame.image.load("./images/start.png") self.pause = pygame.image.load("./images/pause.png") self.gameover = pygame.image.load("./images/gameover.png") self.heroImages = ["./images/hero.gif","./images/hero1.png","./images/hero2.png"] #英雄机图片 self.airImage = pygame.image.load("./images/enemy0.png") #airplane的图片 self.beeImage = pygame.image.load("./images/bee.png") #bee的图片 self.heroBullet = pygame.image.load("./images/bullet.png") #英雄机的子弹