Exemplo n.º 1
0
def enter():
    global ship
    global fisher
    global float
    global fish
    global bg
    global Objects
    global ui
    global game_time
    global Locals

    ui = Class.UI()
    bg = Class.FixedTileBackground()
    Locals = [
        Object_Class.LOCAL(i) for i in range(bg.local - bg.max_vortex_id)
    ]
    Objects = [Object_Class.STONE(i) for i in range(bg.max_stone_id)]
    Voretx = [
        Object_Class.VORTEX(i)
        for i in range(0, bg.max_vortex_id - bg.max_stone_id)
    ]
    Objects = Objects + Voretx
    ship = Ship_Class.SHIP()
    fisher = Fisher_Class.FISHER(bg)
    float = Float_Class.FLOAT(fisher)
    fish = Fish_Class.FISH()
    bg.set_center_object(ship)
    ship.set_background(bg)
    fish.set_background(bg)
    float.set_background(bg)

    for Object in Objects:
        Object.set_background(bg)

    for local in Locals:
        local.set_background(bg)

    game_time = time.clock()
    pass