Ejemplo n.º 1
0
def enter():
    gfw.world.init(['bg', 'zombie', 'player'])
    global player
    player = Player()
    gfw.world.add(gfw.layer.player, player)

    bg = gobj.ImageObject('kpu_1280x960.png', (canvas_width // 2, canvas_height // 2))
    gfw.world.add(gfw.layer.bg, bg)

    global zombie_time
    zombie_time = 1

    Zombie.load_all_images()