def robot(scene):
    block_size = 0.1
    scene.set_offset(0.1, 0.05, 0.3)

    def add_leg(x, y, z):
        for i in range(4):
            scene.add_rect((x + ((block_size / 2) * (i // 2))), (y + (((0.7 * block_size) / 2) * (i % 2))), z, (block_size / 2), ((0.7 * block_size) / 2), block_size, scene.new_actuator())
    for i in range(4):
        add_leg((((i // 2) * block_size) * 2), 0.0, (((i % 2) * block_size) * 2))
    for i in range(3):
        scene.add_rect((block_size * i), 0, block_size, block_size, (block_size * 0.7), block_size, (- 1), 1)
    scene.add_rect(0.1, 0.15, 0.1, 0.2, 0.05, 0.2, (- 1), 0)
def robot(scene):
    block_size = 0.1
    scene.set_offset(0.1, 0.05, 0.3)

    def add_leg(x, y, z):
        for i in range(4):
            scene.add_rect((x + ((block_size / 2) * (i // 2))), (y + (((0.7 * block_size) / 2) * (i % 2))), z, (block_size / 2), ((0.7 * block_size) / 2), block_size, scene.new_actuator())
    for i in range(4):
        add_leg((((i // 2) * block_size) * 2), 0.0, (((i % 2) * block_size) * 2))
    for i in range(3):
        scene.add_rect((block_size * i), 0, block_size, block_size, (block_size * 0.7), block_size, (- 1), 1)
    scene.add_rect(0.1, 0.15, 0.1, 0.2, 0.05, 0.2, (- 1), 0)