예제 #1
0
def enter():
    global stage,mop,State
    stage = Stage()
    global player
    global enemy1
    global bullet
    global Monbullet
    global midbullet
    global Bossbullet
    global Bossbullet2
    global Bossbullet3
    global boss
    global middle

    bullet = []
    Monbullet = []
    midbullet = []
    Bossbullet = []
    Bossbullet2 = []
    Bossbullet3 = []
    player = character()

    #enemy1 = Enemy()



    mop = [Enemy(100+(75*i), 700) for i in range(6)]
    boss = [Enemy2(250, 1000) for j in range(1)]
    middle = [middleboss(150 + (200 * k),800) for k in range(2)]
예제 #2
0
def enter():
    global stage, mop, State
    stage = Stage()
    global player
    global enemy1
    global bullet
    global Monbullet
    global midbullet
    global Bossbullet
    global Bossbullet2
    global Bossbullet3
    global boss
    global middle
    global upbullet
    global Upgrade
    global Chance
    global bgm
    global missilesound, explosionsound, itemsound
    global Attack

    missilesound = None
    explosionsound = None
    itemsound = None
    bullet = []
    upbullet = []
    Monbullet = []
    midbullet = []
    Bossbullet = []
    Bossbullet2 = []
    Bossbullet3 = []
    Attack = []
    player = character()

    # enemy1 = Enemy()
    # bgm = load_music("resource/stage.mp3")
    # #start_state.bgm.resume()
    # bgm.set_volume(64)
    # bgm.repeat_play()

    mop = [Enemy(100 + (75 * i), 700) for i in range(6)]
    boss = [Enemy2(250, 1000) for j in range(1)]
    middle = [middleboss(150 + (200 * k), 800) for k in range(2)]
    Chance = [Upgrade2(75 - (l * 50), 20) for l in range(2)]
    bgm = load_music("resource/stage.mp3")
    Upgrade = [Upgrade1(100 + (j * 100), 100 + (j * 100)) for j in range(2)]
    bgm.set_volume(64)
    bgm.repeat_play()

    if missilesound == None:
        missilesound = load_wav("resource/missile.wav")
        missilesound.set_volume(50)

    if itemsound == None:
        itemsound = load_wav("resource/missile up.wav")
        itemsound.set_volume(50)

    if explosionsound == None:
        explosionsound = load_wav("resource/explo.wav")
        explosionsound.set_volume(50)