To allow quick changes and to keep it simple I used strings.
here is the level:
// Define the level
czLevel[0] = "{121 ";
czLevel[1] = " 1$1 ";
czLevel[2] = " 1.1 ";
czLevel[3] = " 1.1 }";
czLevel[4] = "{1.222222222222222221 ";
czLevel[5] = " 1~........^........1 ";
czLevel[6] = " 1.o...o...o.@...2221 ";
czLevel[7] = " 1..........r...22221 ";
czLevel[8] = " 1.o.b...x.o.@......1 ";
czLevel[9] = " 1.............s....1 ";
czLevel[10] = " 1.o..*o.....22#22221 ";
czLevel[11] = " 1....*.....22.ng...1 ";
czLevel[12] = " 1.....^...22..s....1 ";
czLevel[13] = " 12222222222222#22221}";
czLevel[14] = "{ 122#221 ";
czLevel[15] = " 1#####1 ";
czLevel[16] = " 1#222#1 }";
czLevel[17] = "{122222222222#222#221 ";
czLevel[18] = " 1...........n...n..1 ";
czLevel[19] = " 1..o.....x.o.......1 ";
czLevel[20] = " 1..........b.......1 ";
czLevel[21] = " 1..@s..@.....^..^..1 ";
czLevel[22] = " 1222#222222222222221}";
czLevel[23] = "{ 1#221 ";
czLevel[24] = " 1###1 ";
czLevel[25] = " 122#1 }";
czLevel[26] = "{122222#222221 ";
czLevel[27] = " 1.....n.....1 ";
czLevel[28] = " 1...........1 ";
czLevel[29] = " 1..........^1 ";
czLevel[30] = " 1.....xr....1 ";
czLevel[31] = " 1^..........1 ";
czLevel[32] = " 1...........1 ";
czLevel[33] = " 1..s.*s.*s..1 ";
czLevel[34] = " 122#22#22#221 }";
czLevel[35] = "{ 1#22#22#221 ";
czLevel[36] = " 1#########1 ";
czLevel[37] = " 122222222#1 }";
czLevel[38] = "{12222222222#22222221 ";
czLevel[39] = " 1..........n...^...1 ";
czLevel[40] = " 1..................1 ";
czLevel[41] = " 1.o.......o......o.1 ";
czLevel[42] = " 1....g.............1 ";
czLevel[43] = " 1........x.........1 ";
czLevel[44] = " 1.o..............o.1 ";
czLevel[45] = " 1........@.......@.1 ";
czLevel[46] = " 1..@..........r.*..1 ";
czLevel[47] = " 1.o....*..o......o.1 ";
czLevel[48] = " 1.....^.......^....1 ";
czLevel[49] = " 12222222222222222221}";
To allow a basic visibility system, everything enclosed in curlies {} is considered an area. Each area can see one area in from and one area behind, all other areas are hidden.
Regards,
Dave Milton
ravey@thegamecreators.com