~ubuntu-branches/ubuntu/hoary/enigma/hoary

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- created by Martin Hawlisch
levelw =  10*19+1
levelh = 13
create_world(levelw, levelh)
fill_floor("fl-metal")

function create_room( nr, goal)
	draw_border( "st-plain", nr*19, 0, 20, 13)
	set_item( "it-wormhole", nr*19+18, 1+goal, {range=1, strength=10, targetx=nr*19+19+11.5, targety=6.5})
	for i=1, 9 do
		item = enigma.GetItem(nr*19+18,1+i)
		if item == nil then
			set_item( "it-wormhole", nr*19+18, 1+i, {range=1, strength=10, targetx=nr*19+1.5, targety=6.5})
		end
	end
	if (options.Difficulty==1) then -- easy
		fill_floor( "fl-water", nr*19+1, 1, goal, 11)
	else
		fill_floor( "fl-water", nr*19+1, 1, 3, 11)
	end
end

create_room( 0, 3)
create_room( 1, 1)
create_room( 2, 4)
create_room( 3, 1)
create_room( 4, 5)
create_room( 5, 9)
create_room( 6, 2)
create_room( 7, 6)
create_room( 8, 5)

draw_border( "st-plain", 9*19, 0, 20, 13)
oxyd( 9*19+2, 2)
oxyd( 9*19+2, 10)
oxyd( 9*19+17, 2)
oxyd( 9*19+17, 10)

Document( 12,9, "P")
Document( 13,9, "I")
set_actor("ac-blackball", 11.5,6.5, {player=0})