Example #1
0
def build_obj_map_tutorial():
    array = []

    array = [
        ob.UFO_Steal(x=10 * MAP_UNIT_X,
                     y=ground - 16 * MAP_UNIT_Y,
                     sizex=MAP_UNIT_X * 8,
                     sizey=MAP_UNIT_Y * 8),
        ob.Text_Graphic_1(x=6 * MAP_UNIT_X,
                          y=ground - 16 * MAP_UNIT_Y,
                          sizex=MAP_UNIT_X * 4,
                          sizey=MAP_UNIT_Y * 4),
        ob.Text_Graphic_2(x=2 * MAP_UNIT_X,
                          y=ground - 8 * MAP_UNIT_Y,
                          sizex=MAP_UNIT_X * 4,
                          sizey=MAP_UNIT_Y * 4),
        ob.Text_Graphic_3(x=30 * MAP_UNIT_X,
                          y=ground - 16 * MAP_UNIT_Y,
                          sizex=MAP_UNIT_X * 4,
                          sizey=MAP_UNIT_Y * 4),
        ob.Coin(x=6 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=2 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=4 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=6 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=8 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=10 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=12 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=14 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=16 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=18 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=20 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=22 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=24 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=26 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=28 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=30 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=32 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=34 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=36 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=38 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Coin(x=38 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=40 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=42 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        # stairs
        ob.Block(x=44 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=46 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=46 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        # flat floor
        ob.Block(x=48 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=48 * MAP_UNIT_X, y=ground - 2 * MAP_UNIT_Y),
        ob.Block(x=50 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=50 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=52 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=52 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=54 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=54 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=56 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=56 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=58 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=58 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Coin(x=58 * MAP_UNIT_X, y=ground - 8 * MAP_UNIT_Y),
        # pitfall
        #ob.Block(x=62 * MAP_UNIT_X, y=14 * MAP_UNIT_Y, sizey=4 * MAP_UNIT_Y),
        #ob.Block(x=62 * MAP_UNIT_X, y=10 * MAP_UNIT_Y, sizey=4 * MAP_UNIT_Y),
        #ob.Block(x=62 * MAP_UNIT_X, y=6 * MAP_UNIT_Y, sizey=4 * MAP_UNIT_Y),
        #ob.Block(x=62 * MAP_UNIT_X, y=4, sizey=4 * MAP_UNIT_Y),
        ob.Block(x=66 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=66 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=68 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=68 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=70 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=70 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        # flat floor v2
        ob.Block(x=72 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=72 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=74 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=74 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=76 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=76 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=78 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=78 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=80 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=80 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=82 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=82 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=84 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=84 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        # Moving block gap
        ob.Block_Move(x=94 * MAP_UNIT_X, y=ground - 8 * MAP_UNIT_Y),
        ob.Block(x=100 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=100 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=102 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=104 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        # flat floor v3
        ob.Block(x=106 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=106 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=108 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=108 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=110 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=110 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=112 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=112 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=114 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=114 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=116 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=116 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        # falling block section
        ob.Block_Fall(x=118 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block_Fall(x=120 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block_Fall(x=122 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block_Fall(x=124 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Coin(x=124 * MAP_UNIT_X, y=ground - 8 * MAP_UNIT_Y),
        ob.Block_Fall(x=126 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block_Fall(x=128 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        # flat floor v4
        ob.Block(x=130 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=130 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=132 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=132 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=134 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=134 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=136 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=136 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=138 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=138 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=140 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=140 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=142 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=142 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=144 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=144 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),
        ob.Block(x=146 * MAP_UNIT_X, y=ground - 4 * MAP_UNIT_Y),
        ob.Block(x=146 * MAP_UNIT_X, y=ground - 6 * MAP_UNIT_Y),

        # level floors
        ob.Floor(x=0,
                 y=ground,
                 sizex=86 * MAP_UNIT_X,
                 sizey=int(0.8 * MAP_UNIT_Y)),
        ob.Floor(x=104 * MAP_UNIT_X,
                 y=ground,
                 sizex=14 * MAP_UNIT_X,
                 sizey=int(0.8 * MAP_UNIT_Y)),
        ob.Floor(x=130 * MAP_UNIT_X,
                 y=ground,
                 sizex=80 * MAP_UNIT_X,
                 sizey=int(0.8 * MAP_UNIT_Y)),
        ob.Floor(x=MAP_UNIT_X * 44,
                 y=ground - MAP_UNIT_Y * 2,
                 sizex=MAP_UNIT_X * 116,
                 sizey=MAP_UNIT_Y * 2),
        ob.Floor(x=MAP_UNIT_X * 46,
                 y=ground - MAP_UNIT_Y * 4,
                 sizex=MAP_UNIT_X * 14,
                 sizey=MAP_UNIT_Y * 4),
        ob.Floor(x=MAP_UNIT_X * 32,
                 y=ground - MAP_UNIT_Y * 2,
                 sizex=MAP_UNIT_X * 2,
                 sizey=MAP_UNIT_Y * 2),
        ob.Floor(x=MAP_UNIT_X * 66,
                 y=ground - MAP_UNIT_Y * 4,
                 sizex=MAP_UNIT_X * 20,
                 sizey=MAP_UNIT_Y * 4),
        ob.Floor(x=MAP_UNIT_X * 62,
                 y=ground - MAP_UNIT_Y * 26,
                 sizex=MAP_UNIT_X * 2,
                 sizey=MAP_UNIT_Y * 22),
        ob.Floor(x=MAP_UNIT_X * 100,
                 y=ground - MAP_UNIT_Y * 4,
                 sizex=MAP_UNIT_X * 18,
                 sizey=MAP_UNIT_Y * 14),
        ob.Floor(x=MAP_UNIT_X * 130,
                 y=ground - MAP_UNIT_Y * 4,
                 sizex=MAP_UNIT_X * 18,
                 sizey=MAP_UNIT_Y * 14),
    ]

    return array