-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap_data.lua
More file actions
227 lines (208 loc) · 6.35 KB
/
map_data.lua
File metadata and controls
227 lines (208 loc) · 6.35 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
-- This is a little delicate, in that it requires the sprites and various other
-- globals to exist already. Really it is just a convenience.
local mapoffset51 = 28
local mapoffset91 = 55
local write_map_data = function ()
return {
-- 1-1
LevelOne("map1-1.tmx", {
name = "1-1",
item = "coin",
sprite = Sprites.bigguy,
doors = {
{
coords = { 204, 12 },
event = "onVictory"
}
},
scenes = {
init = "StartScreen",
sub = "Pre11"
},
origin = {
x = 0,
y = 0
},
start = {
x = 5,
y = 12
}
}),
-- 2-1
SubsequentLevels("map2-1.tmx", {
name = "2-1",
item = "flower",
glitch_penalty = 50,
sprite = Sprites.ladyguy,
doors = {
{
coords = { 204, 12 },
event = "onVictory"
},
{
coords = { 98, 27 },
event = "enterDoubleJumpShrine21"
},
},
scenes = {
init = "Pre21",
sub = "Pre21Sub",
glitch = "Pre21G"
},
glitches = {
missing = 35,
dmissing = 25,
crazy = 45
},
-- the distance in tiles between the top left corner of the MAP
-- and the top left corner of the starting screen (with the castle)
origin = {
x = 0,
y = 0
},
-- mario's starting location, relative to the origin (the top left
-- corner of the castle screen)
start = {
x = 5,
y = 12 -- I have no idea why this # works better
}
}),
-- 5-1
SubsequentLevels("map5-1.tmx", {
name = "5-1",
item = "flower",
glitch_penalty = 50,
sprite = Sprites.lilguy,
doors = {
{
coords = { 202+mapoffset51, 27 },
event = "onVictory"
},
{
coords = { 36+mapoffset51, 27 },
event = "enterCloudShrine51"
},
{
coords = { 98+mapoffset51, 42 },
event = "enterDoubleJumpShrine51"
},
{
coords = { 187+mapoffset51, 5 },
event = "enterBackwardsShrine51"
},
},
scenes = {
init = "Pre51",
sub = "Pre51Sub",
glitch = "Pre51G"
},
glitches = {
missing = 45,
dmissing = 25,
cmissing = 8,
crazy = 45
},
-- the distance in tiles between the top left corner of the MAP
-- and the top left corner of the starting screen (with the castle)
origin = {
x = mapoffset51,
y = 15 -- was 15
},
-- mario's starting location, relative to the origin (the top left
-- corner of the castle screen)
start = {
x = 5, --formerly 5
y = 12
}
}),
-- 9-1
SubsequentLevels("map9-1.tmx", {
name = "9-1",
item = "flower",
sprite = Sprites.oldguy,
glitch_penalty = 50,
doors = {
{
coords = { 196+mapoffset91, 52 },
event = "onVictory"
},
{
coords = { 18+mapoffset91, 65 },
event = "enterWallJumpShrine91"
},
{
coords = { 19+mapoffset91, 80 },
event = "enterSecretShrine"
},
{
coords = { 36+mapoffset91, 52 },
event = "enterCloudShrine91"
},
{
coords = { 82+mapoffset91, 82 },
event = "enterTreeShrine"
},
{
coords = { 98+mapoffset91, 67 },
event = "enterDoubleJumpShrine91"
},
{
coords = { 187+mapoffset91, 30 },
event = "enterBackwardsShrine91"
},
},
scenes = {
init = "Pre91",
sub = "Pre91Sub",
glitch = "Pre91G"
},
glitches = {
missing = 65,
dmissing = 35,
cmissing = 10,
crazy = 40
},
-- the distance in tiles between the top left corner of the MAP
-- and the top left corner of the starting screen (with the castle)
origin = {
x = mapoffset91,
y = 40
},
-- mario's starting location, relative to the origin (the top left
-- corner of the castle screen)
start = {
x = 5,
y = 12
}
}),
-- 10-0
SubsequentLevels("map9-1.tmx", {
name = "9-1",
item = "flower",
sprite = Sprites.oldguy,
glitch_penalty = 50,
doors = {
{
coords = { 196, 52 },
event = "onVictory"
}
},
scenes = {
init = "Finale100"
},
-- the distance in tiles between the top left corner of the MAP
-- and the top left corner of the starting screen (with the castle)
origin = {
x = 0,
y = 40
},
-- mario's starting location, relative to the origin (the top left
-- corner of the castle screen)
start = {
x = 5,
y = 12
}
})
}
end
return write_map_data