Ejemplo n.º 1
0
def enter():

    global back
    back = Back()
    game_world.add_object(back, 0)

    global stage_one_back
    stage_one_back = Stage_one_Back()
    game_world.add_object(stage_one_back, 0)

    # global ladders
    # ladders = [Ladder(ladder_position[i]) for i in range(2)]
    # for ladder in ladders:
    #     ladder.set_background(stage_one_back)
    # game_world.add_objects(ladders, 1)

    global boy
    boy = Boy()
    game_world.add_object(boy, 2)

    global mooks
    mooks = [Mook(mook_position[i]) for i in range(6)]

    for mook in mooks:
        mook.set_background(stage_one_back)
    game_world.add_objects(mooks, 4)

    stage_one_back.set_center_object(boy)
    boy.set_background(stage_one_back)

    global ui
    ui= Ui()
    game_world.add_object(ui, 6)
Ejemplo n.º 2
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global balls
    balls = [Ball() for i in range(10)]
    game_world.add_objects(balls, 1)

    background.set_center_object(boy)
    boy.set_background(background)
    balls[0].set_background(background)
    balls[1].set_background(background)
    balls[2].set_background(background)
    balls[3].set_background(background)
    balls[4].set_background(background)
    balls[5].set_background(background)
    balls[6].set_background(background)
    balls[7].set_background(background)
    balls[8].set_background(background)
    balls[9].set_background(background)
Ejemplo n.º 3
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    background.set_center_object(boy)
    boy.set_background(background)
Ejemplo n.º 4
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    background.set_center_object(boy)  # 백그라운드에 boy를 알려줌
    boy.set_background(background)  # boy에 백그라운드를 알려줌
Ejemplo n.º 5
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global back
    back = FixedBackground()
    back.set_center_object(boy)
    boy.set_background(back)
    game_world.add_object(back, 0)

    global balls
    balls = [Ball(back) for i in range(100)]
    game_world.add_objects(balls, 1)
Ejemplo n.º 6
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    background.set_center_object(boy)
    boy.set_background(background)

    global balls
    balls = [Ball() for i in range(100)]
    game_world.add_objects(balls, 1)
Ejemplo n.º 7
0
def enter():
    global boy, ball_list
    ball_list = [BigBall() for i in range(100)]

    boy = Boy()
    game_world.add_object(boy, 1)
    for i in ball_list:
        game_world.add_object(i, 1)
    global background
    background = Background()
    game_world.add_object(background, 0)

    background.set_center_object(boy)
    boy.set_background(background)
    ball_list[0].set_background(background)
Ejemplo n.º 8
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    for i in range(100):
        ball = Ball()
        game_world.add_object(ball, 1)
        ball.set_center_object(boy)

    background.set_center_object(boy)
    boy.set_background(background)
Ejemplo n.º 9
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global balls
    balls = [Ball() for i in range(ball_num)]
    game_world.add_objects(balls, 1)

    background.set_center_object(boy)  #상호참조
    boy.set_background(background)
    for i in range(ball_num):
        balls[i].set_background(background)
Ejemplo n.º 10
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global balls
    balls = [FixedBall() for i in range(100)]
    game_world.add_objects(balls, 1)

    background.set_center_object(boy)  # 백그라운드에 boy를 알려줌
    boy.set_background(background)  # boy에 백그라운드를 알려줌

    for ball in balls:
        ball.set_background(background)
Ejemplo n.º 11
0
def enter():
    global Sound2
    Sound2 = load_wav('pickup.wav')
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global ba
    ba = [Ball() for i in range(100)]

    game_world.add_objects(ba, 1)

    background.set_center_object(boy)
    boy.set_background(background)
Ejemplo n.º 12
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global balls;
    balls = [Ball() for i in range(0, 100)];
    game_world.add_objects(balls, 1)

    for ball in balls:
        ball.set_background(background);

    # fill here
    background.set_center_object(boy);
    boy.set_background(background);
Ejemplo n.º 13
0
def enter():

    # global grass
    # grass = Grass()
    #  #game_world.add_object(grass, 0)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global balls
    balls = [Ball() for i in range(100)]
    for ball in balls:
        ball.set_background(background)
    game_world.add_objects(balls, 1)

    # fill here
    background.set_center_object(boy)
    boy.set_background(background)
Ejemplo n.º 14
0
def enter():

    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global background
    background = Background()
    game_world.add_object(background, 0)

    global balls
    balls = [Ball() for i in range(100)]
    game_world.add_objects(balls, 0)

    #  global ball
    # ball = Ball()
    # game_world.add_object(ball, 0)
    # fill here

    background.set_center_object(boy)
    # background.set_center_object(ball)
    boy.set_background(background)
    for ball in balls:
        ball.set_background(background)