-- created by Martin Hawlisch

levelw = 39
levelh = 25

create_world( levelw, levelh)
fill_floor("fl-water", 0, 0, levelw, levelh)
fill_floor("fl-sand", 4,2,levelw-8,levelh-4)
fill_floor("fl-water", 8,4, levelw-16,levelh-8)

draw_stones("st-puzzle", { 5, 5}, {1,0}, 23, {connections=PUZ_0101})
draw_stones("st-puzzle", {28, 3}, {0,1}, 15, {connections=PUZ_1010})
draw_stones("st-puzzle", {10,18}, {1,0}, 23, {connections=PUZ_0101})
draw_stones("st-puzzle", { 9, 6}, {0,1}, 15, {connections=PUZ_1010})

puzzle( 4, 5, PUZ_0100)
puzzle( 9, 5, PUZ_0111)
puzzle(28, 2, PUZ_0010)
puzzle(28, 5, PUZ_1011)
puzzle(33,18, PUZ_0001)
puzzle(28,18, PUZ_1101)
puzzle( 9,21, PUZ_1000)
puzzle( 9,18, PUZ_1110)

oxyd( 8,4)
oxyd(19,4)
oxyd( levelw-9,4)
oxyd( levelw-9,12)
oxyd( 8,levelh-5)
oxyd( 8,12)
oxyd( levelw-9,levelh-5)
oxyd( 19,levelh-5)

oxyd_shuffle()

draw_stones("st-oneway", {levelw-8,16}, {1,0}, 4, {orientation=NORTH})
draw_stones("st-oneway", {levelw-8, 8}, {1,0}, 4, {orientation=NORTH})
draw_stones("st-oneway", {4,8}, {1,0}, 4, {orientation=SOUTH})
draw_stones("st-oneway", {4,16}, {1,0}, 4, {orientation=SOUTH})
draw_stones("st-oneway", {15,2}, {0,1}, 2, {orientation=WEST})
draw_stones("st-oneway", {23,2}, {0,1}, 2, {orientation=WEST})
draw_stones("st-oneway", {15,levelh-4}, {0,1}, 2, {orientation=EAST})
draw_stones("st-oneway", {23,levelh-4}, {0,1}, 2, {orientation=EAST})

set_actor("ac-blackball", 33, 21, {player=0})

