Exemple #1
0
def create_world():
    global boy, grass, balls, big_balls
    boy = Boy()
    big_balls = [BigBall() for i in range(10)]
    balls = [Ball() for i in range(10)]
    balls = big_balls + balls
    grass = Grass()
Exemple #2
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

    global balls
    balls = [Ball() for i in range(10)] + [BigBall() for i in range(10) ]
    game_world.add_objects(balls , 1)
Exemple #3
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

    global balls
    balls = [Ball() for i in range(10)] + [BigBall() for i in range(10)] # 리스트 컴프리헨션
    game_world.add_objects(balls, 1)  # 게임월드에 집어넣음 add_objects() 함수가 추가됨 리스트에 있는 객체를 모두 게임월드에 집어넣음
Exemple #4
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

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

    brick.image = load_image('brick180x40.png')
Exemple #5
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)
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global zombie
    zombie = Zombie()
    game_world.add_object(zombie, 1)

    ground = Ground()
    game_world.add_object(ground, 0)

    global balls
    balls = [Ball() for i in range(5)] + [BigBall() for i in range(5)]
    game_world.add_objects(balls, 1)
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

    global balls
    balls = [Ball() for i in range(10)] + [BigBall() for i in range(10)]
    game_world.add_objects(balls, 1)
    # fill here for balls

    global brick
    brick = Brick()
    game_world.add_object(brick, 1)
Exemple #8
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

    # fill here for balls
    global balls
    balls = [Ball() for i in range(10)] + [BigBall() for i in range(10)]
    game_world.add_objects(balls, 1)

    global tile
    tile = TILE()
    game_world.add_object(tile, 2)
Exemple #9
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

    global balls
    balls = [Ball() for i in range(10)] + [BigBall() for i in range(10)]

    global brick
    brick = Brick()
    game_world.add_object(brick, 1)
    for i in range(20):
        game_world.add_object(balls[i], 1)
Exemple #10
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

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

    #global bird
    #Birds = [Bird() for i in range(5)]
    #for bird in Birds:
    #    bird = Bird()
    #    game_world.add_object(bird,2)

    global balls
    balls=[Ball() for i in range(10)]+[BigBall() for i in range(10)]
    game_world.add_objects(balls,1)
Exemple #11
0
def enter():
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global zombie
    zombie = Zombie()
    game_world.add_object(zombie, 1)

    global ball
    for i in range(5):
        ball.append(BigBall())
    for i in range(5):
        ball.append(SmallBall())

    game_world.add_objects(ball, 1)

    ground = Ground()
    game_world.add_object(ground, 0)
Exemple #12
0
def enter():
    global is_eat_ball_done
    is_eat_ball_done = False
    global boy
    boy = Boy()
    game_world.add_object(boy, 1)

    global zombie
    zombie = Zombie()
    game_world.add_object(zombie, 1)

    ground = Ground()
    game_world.add_object(ground, 0)

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