1 |
-- Irregularities -- the Enigma Level |
-- Escher's World -- the Enigma Level |
2 |
-- (c) 2002 Petr Machata/ant_39 |
-- (c) 2002 Petr Machata/ant_39 |
3 |
-- Licensed under GPL v2.0 or above |
-- Licensed under GPL v2.0 or above |
4 |
|
-- 2003-02-10 -- keeping up to date with latest additions to ant.lua |
5 |
|
|
6 |
dofile(enigma.FindDataFile("levels/ant.lua")) |
dofile(enigma.FindDataFile("levels/ant.lua")) |
7 |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
13 |
cells["^"]=cell{floor={face="fl-gradient", attr={type=2}}} |
cells["^"]=cell{floor={face="fl-gradient", attr={type=2}}} |
14 |
cells[">"]=cell{floor={face="fl-gradient", attr={type=3}}} |
cells[">"]=cell{floor={face="fl-gradient", attr={type=3}}} |
15 |
cells["<"]=cell{floor={face="fl-gradient", attr={type=4}}} |
cells["<"]=cell{floor={face="fl-gradient", attr={type=4}}} |
16 |
cells["O"]=cell{parent={cells[" "]},item={face="ac-blackball", attr={player=0}, actor=1}} |
cells["O"]=cell{parent=cells[" "], item={face="ac-blackball", attr={player=0}, actor=1}} |
17 |
cells["="]=cell{parent={cells[" "]},stone={face="st-glass"}} |
cells["="]=cell{parent=cells[" "], stone={face="st-glass"}} |
18 |
cells["0"]=cell{parent={cells[" "]},stone={face="st-oxyd", attr={flavor="b", color="0"}}} |
cells["0"]=cell{parent={cells[" "], oxyd}} |
|
cells["1"]=cell{parent={cells[" "]},stone={face="st-oxyd", attr={flavor="b", color="1"}}} |
|
|
cells["2"]=cell{parent={cells[" "]},stone={face="st-oxyd", attr={flavor="b", color="2"}}} |
|
19 |
|
|
20 |
level = { |
level = { |
21 |
"....................", |
"....................", |
22 |
".O<<<< <<<<<<<<<<< .", |
".O<<<< <<<<<<<<<<< .", |
23 |
".v....v.........2.^.", |
".v....v.........0.^.", |
24 |
".v....v..........2^.", |
".v....v..........0^.", |
25 |
".v....v...........^.", |
".v....v...........^.", |
26 |
".v....v...........^.", |
".v....v...........^.", |
27 |
".v.... >>11<< ....^.", |
".v.... >>00<< ....^.", |
28 |
".v...........^....^.", |
".v...........^....^.", |
29 |
".v...........^....^.", |
".v...........^....^.", |
30 |
".v0..........^....^.", |
".v0..........^....^.", |
35 |
|
|
36 |
|
|
37 |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
38 |
levelw = 20+19 |
oxyd_default_flavor = "b" |
39 |
levelh = 13 |
create_world_by_map(level) |
|
create_world(levelw, levelh) |
|
|
randomseed(enigma.GetTicks()) |
|
|
draw_map(0, 0, level) |
|
40 |
oxyd_shuffle() |
oxyd_shuffle() |