#导入模块。。。
import random
import pygame,sys,os
pygame.mixer.init()
from pygame.locals import *
pygame.init()
fps = 30
fpsClock = pygame.time.Clock()
icon = pygame.image.load(‘resource/h-2.JPG’)
bali = pygame.image.load(‘resource/baligonglu.png’)
cake = pygame.image.load(‘resource/cake.png’)
fire1 = pygame.image.load(‘resource/firework1.png’)
fire2 = pygame.image.load(‘resource/firework2.png’)
fire3 = pygame.image.load(‘resource/firework3.png’)
fire4 = pygame.image.load(‘resource/firework4.png’)
firesImg = [fire1,fire2,fire3,fire4]
font = pygame.font.Font(‘resource/繁星糖果.ttf’,50)
font1 = pygame.font.Font(‘resource/繁星糖果.ttf’,30)
boom_sound = pygame.mixer.Sound(‘resource/爆炸.wav’)
pygame.mixer.music.load(‘resource/铃声.wav’)
pygame.mixer.music.play(-1)
screen = pygame.disp