~ubuntu-branches/ubuntu/intrepid/enigma/intrepid

« back to all changes in this revision

Viewing changes to data/levels/ss_ox38.lua

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2005-08-28 15:30:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050828153009-sky64kb6tcq37xt5
Tags: 0.92.1-1
* New upstream subversion checkout
* Remove menu.s3m, which we are allowed to distributed but not to modify
  also copyright notice is confusing... (Closes: #321669)
* Rebuild with new libzipios (Closes: #325405)
  I hope this works without a versioned build-dependency
* Added "enigma replaces enigma-data" for upgrades (Closes: #308558)
* Added notes about the fonts copyright.
* updated to policy 3.6.2.1 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
levelw = 61
3
 
levelh = 61
4
 
hour = enigma.date("%H")
5
 
 
6
 
create_world(levelw, levelh)
7
 
 
8
 
oxyd_default_flavor = "d"
9
 
fill_floor("fl-wood", 0, 0, levelw,levelh)
10
 
 
11
 
function renderLine( line, pattern)
12
 
    for i=1, strlen(pattern) do
13
 
      local c = strsub( pattern, i, i)
14
 
      if c == "#" then
15
 
         set_stone("st-rock3",i-1,line)
16
 
      elseif c == "h" then
17
 
         set_stone("st-rock3_hole",i-1,line)
18
 
      elseif c == "c" then
19
 
         set_stone("st-rock3_break",i-1,line)
20
 
      elseif c == "M" then
21
 
         set_stone("st-rock3_move",i-1,line)
22
 
      elseif c == "H" then
23
 
         hammer(i-1,line)
24
 
      elseif c == "." then
25
 
         set_item("it-extralife",i-1,line)
26
 
      elseif c == "0" then
27
 
         set_item("it-hollow",i-1,line)
28
 
      elseif c == "k" then
29
 
         set_item("it-key_b",i-1,line)
30
 
      elseif c == "D" then
31
 
         set_stone("st-death",i-1,line)
32
 
      elseif c == "g" then
33
 
         set_stone("st-grate1",i-1,line)
34
 
      elseif c=="m" then
35
 
         set_item("it-coin1", i-1,line)
36
 
      elseif c == "*" then
37
 
         set_item("it-hill",i-1,line)
38
 
      elseif c == "+" then
39
 
         set_item("it-tinyhill",i-1,line)
40
 
      elseif c == "I" then
41
 
         set_floor("fl-ice_001",i-1,line)
42
 
      elseif c == "j" then
43
 
         set_floor("fl-ice_001",i-1,line)
44
 
         set_item("it-crack0",i-1,line)
45
 
      elseif c == "n" then
46
 
         set_floor("fl-normal",  i-1,  line)
47
 
      elseif c == ">" then
48
 
         set_floor("fl-gradient",  i-1,  line, {type=4})
49
 
      elseif c == "<" then
50
 
         set_floor("fl-gradient",  i-1,  line, {type=3})
51
 
      elseif c == "C" then
52
 
         set_stone("st-rock3_break",i-1,line)
53
 
         document(i-1,line, "Business hours from 8am to 4pm")
54
 
      elseif c == "T" then
55
 
         set_stone("st-rock3",i-1,line)
56
 
         if (hour >= "08") and (hour < "16") then     -- only open between 8-16
57
 
           set_stone("st-rock3_break",i-1,line) end
58
 
         if difficult == false then                   -- and while easy mode
59
 
           set_stone("st-rock3_break",i-1,line) end
60
 
      elseif c == "1" then
61
 
         set_item("it-vortex-closed", i-1,line, {name="vortex1", targetx = 33.5, targety =  43.5})
62
 
      elseif c == "w" then
63
 
         set_stone("st-timeswitch",i-1,line,{target = "vortex1", action = "open"})
64
 
      elseif c == "2" then
65
 
         set_item("it-vortex-closed", i-1,line, {name="vortex2", targetx = 1.5, targety =  5.5})
66
 
         set_floor("fl-ice_001",i-1,line)
67
 
      elseif c == "x" then
68
 
         set_stone("st-timeswitch",i-1,line,{target = "vortex2", action = "open"})
69
 
      elseif c == "3" then
70
 
         set_item("it-vortex-closed", i-1,line, {name="vortex3", targetx = 1.5, targety =  59.5})
71
 
      elseif c == "y" then
72
 
         set_stone("st-timeswitch",i-1,line,{target = "vortex3", action = "open"})
73
 
      elseif c == "4" then
74
 
         set_item("it-vortex-closed", i-1,line, {name="vortex4", targetx = 59.5, targety =  1.5})
75
 
      elseif c == "z" then
76
 
         set_stone("st-timeswitch",i-1,line,{target = "vortex4", action = "open"})
77
 
      elseif c == "O" then
78
 
         oxyd( i-1, line)
79
 
      elseif c == "a" then
80
 
         set_actor("ac-blackball", i-.5,line+.5)
81
 
        end
82
 
    end
83
 
end
84
 
 
85
 
renderLine(00, "###########################################################y#")
86
 
renderLine(01, "#a                    H                                    3#")
87
 
renderLine(02, "# ######D ########################################### ##### #")
88
 
renderLine(03, "#       #                           #               # #   # #")
89
 
renderLine(04, "# ####D # ######################### # ############# # # O # #")
90
 
renderLine(05, "#1    #    >nnn<>nnnnnnn<           #                 #   # #")
91
 
renderLine(06, "#w #D # #####################c############### ########## ## #")
92
 
renderLine(07, "#   # # #                    cccccccccc       #   #   #   # #")
93
 
renderLine(08, "# # # # # ###########################c####### # # # # # ### #")
94
 
renderLine(09, "# # # #           #     #   #       #c#     # # # # # # #   #")
95
 
renderLine(10, "# # # # ## ###### # ### # # # #######c# # # # # # # # # # # #")
96
 
renderLine(11, "# # # #         #       # # #       #c# # # #   #   # # # # #")
97
 
renderLine(12, "# # # ######### # ##### # # # ##### ### # # # #####   # # # #")
98
 
renderLine(13, "# # #             #     # # # #   #     # # #       ### # # #")
99
 
renderLine(14, "# # # ########### ### ### # # # O ####### # # ##### # # # # #")
100
 
renderLine(15, "# # #           #     #   # # #   #       # #     # #   # # #")
101
 
renderLine(16, "# # # ######### # # ### ### # ## ## ##### # # # # # # ### # #")
102
 
renderLine(17, "# # # #         # #         # #         # #   # # #   #   # #")
103
 
renderLine(18, "# # # # # ##### # ######### # # ### ### # # ### # ##### ### #")
104
 
renderLine(19, "# # # # # #  .#           # # # #     # # # #   # #   # # # #")
105
 
renderLine(20, "# # # # # # # # ####### # # # # # ### # # # ##### # # # # # #")
106
 
renderLine(21, "# #     # # # #   #   # # # # # #   # #     #     # # # #   #")
107
 
renderLine(22, "# # ##### # # # # # # # # # # # # # # ######### # # # # # # #")
108
 
renderLine(23, "#         # # # # # #   #         # #           # # #     # #")
109
 
renderLine(24, "# ##### # # # # # # ############# # ########### # # ####### #")
110
 
renderLine(25, "#       #   #   # #       #     # #           #           # #")
111
 
renderLine(26, "####### # ##### #k####### ##### # ########### ##### ####### #")
112
 
renderLine(27, "# #       #####       0       # #         #       #       # #")
113
 
renderLine(28, "# ##### # ##### ############# # ######### # ##### ####### # #")
114
 
renderLine(29, "#     # #   ### #           # #           #     #         # #")
115
 
renderLine(30, "### # # ####### # ######### # #################### ######## #")
116
 
renderLine(31, "#   # # ####### # hhhhhhhhh #                               #")
117
 
renderLine(32, "# # # # ####### # #h####### # ###### ###################### #")
118
 
renderLine(33, "# # # # #         #hhhhh*   #                             # #")
119
 
renderLine(34, "# # # # ############# # ################################# # #")
120
 
renderLine(35, "# # # D #   #       # # #                                 # #")
121
 
renderLine(36, "# # # ### # # ##### # # # ################################# #")
122
 
renderLine(37, "#   #       # #     #                  ++++++++++        O# #")
123
 
renderLine(38, "#######g### # ### # ### ################################### #")
124
 
renderLine(39, "# #    g  #  M    #   #                       #           # #")
125
 
renderLine(40, "# # #m#g  # # ##### # ################# ##### # #######D# D #")
126
 
renderLine(41, "#   # #g    #       # # IIIIIIIIIjIIIIIIIIII# # #       # # #")
127
 
renderLine(42, "# ### #g    # ### ### # # #################I# # # ### # # # #")
128
 
renderLine(43, "#     #ggggg# #   #   # #IIIIIIII2IIIIIIIIII# # #   # # # # #")
129
 
renderLine(44, "# #########g# # ### ### # #######x########### # # # # # # # #")
130
 
renderLine(45, "#     #ggggg    #   #   #             #         # # # # # # #")
131
 
renderLine(46, "##### # ######### # # # # # ######### # ##### # # # # # # # #")
132
 
renderLine(47, "#   #   #           # # # # #       # #     # #   # # # # # #")
133
 
renderLine(48, "# # # # # ########### # # # # ##### # # ### # ### # # # # # #")
134
 
renderLine(49, "# # # #               # # #   #   # # #   #     #+++++# # # #")
135
 
renderLine(50, "# # # # ############### # # # # # # # # # # ### ##### # # # #")
136
 
renderLine(51, "# #   # #             # # # # # # # #   # #   #       # # # #")
137
 
renderLine(52, "# ### # # ########### # # # # # # # # ### # # ####### # # # #")
138
 
renderLine(53, "#     #             # # # # # D # #   #             D #   #H#")
139
 
renderLine(54, "##### # ########### # # # # D # # # ### # ### ### #########c#")
140
 
renderLine(55, "#   #             # # # # # # # # # #   #   #   #     #ccc#c#")
141
 
renderLine(56, "# # ############# # # # # # # # # # # ##### # # ##### #cOc#c#")
142
 
renderLine(57, "# #               # # #   #   # # # #   #   # #       #ccc#c#")
143
 
renderLine(58, "# ############ #### # ### ##### # # D # # # # ##########T##c#")
144
 
renderLine(59, "z4                  #                 # # # #         ccCccc#")
145
 
renderLine(60, "#############################################################")
146
 
 
147
 
 
148
 
oxyd_shuffle()
149