~ubuntu-branches/ubuntu/edgy/enigma/edgy-backports

« back to all changes in this revision

Viewing changes to data/levels/wb2.lua

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2005-06-20 20:48:19 UTC
  • Revision ID: james.westby@ubuntu.com-20050620204819-ggqswr2gh3w9hhyr
Tags: upstream-0.92
ImportĀ upstreamĀ versionĀ 0.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- WB 2: Impossible?
 
2
-- (c) 2003 Jon Sneyers
 
3
-- Licensed under GPL v2.0 or above
 
4
-- 2003-12-20
 
5
 
 
6
dofile(enigma.FindDataFile("levels/ant.lua"))
 
7
 
 
8
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
9
 
 
10
cells={}
 
11
 
 
12
cells[" "]=cell{floor="fl-tigris"}
 
13
cells[";"]=cell{floor="fl-samba"}
 
14
cells[":"]=cell{floor="fl-stone"}
 
15
cells["w"]=cell{stone="st-wood"}
 
16
cells["i"]=cell{stone="st-stoneimpulse"}
 
17
 
 
18
cells["="]=cell{stone="st-rock5"}
 
19
cells["#"]=cell{stone="st-rock6"}
 
20
cells["."]=cell{floor="fl-abyss"}
 
21
 
 
22
cells["H"]=cell{stone="st-chameleon"}
 
23
 
 
24
cells["&"]=cell{{{oneway, EAST}}}
 
25
cells["%"]=cell{{{oneway, WEST}}}
 
26
 
 
27
cells["V"]=cell{parent=cells[" "], stone="st-bolder-s"}
 
28
cells[">"]=cell{parent=cells[" "], stone="st-bolder-e"}
 
29
cells["<"]=cell{parent=cells[" "], stone="st-bolder-w"}
 
30
cells["^"]=cell{parent=cells[" "], stone="st-bolder-n"}
 
31
 
 
32
cells["a"]=cell{stone={face="st-door", attr={name="doorA", type="v"}}}
 
33
cells["A"]=cell{item= {face="it-trigger", attr={action="close", target="doorA"}}}
 
34
cells["B"]=cell{item= {face="it-trigger", attr={action="open", target="doorA"}}}
 
35
cells["O"]=cell{actor={face="ac-blackball", attr={player=0}}}
 
36
cells["0"]=oxyd
 
37
 
 
38
if difficult == false then
 
39
    cells["1"]=cells[";"]
 
40
    cells["2"]=cells["#"]
 
41
else
 
42
    cells["1"]=oxyd
 
43
    cells["2"]=oxyd
 
44
end
 
45
 
 
46
level = {      
 
47
   "#2######iiii######0#",
 
48
   "0V                <#",
 
49
   "#       ^^^^       #",
 
50
   "# 11111        H   #",
 
51
   "i < 1              #",
 
52
   "i < 1  ; ;  ;  ;;  #",
 
53
   "i < 1  ; ;; ; ;  ; #",
 
54
   "i < 1  ; ;;;; ;;;; #",
 
55
   "i < 1  ; ; ;; ;  ; #",
 
56
   "#   1  ; ;  ; ;  ; #",
 
57
   "# O     VVVV       #",
 
58
   "#>                ^0",
 
59
   "#0######iiii########",
 
60
}
 
61
--  01234567890123456789
 
62
 
 
63
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 
64
oxyd_default_flavor = "c"
 
65
set_default_parent(cells[" "])
 
66
create_world_by_map(level)
 
67
oxyd_shuffle()
 
68
set_item("it-magicwand", 15,3)