-
Notifications
You must be signed in to change notification settings - Fork 0
/
tilemap.g.ts
215 lines (212 loc) · 16 KB
/
tilemap.g.ts
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
// Auto-generated code. Do not edit.
namespace myTiles {
//% fixedInstance jres blockIdentity=images._tile
export const transparency16 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile1 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile3 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile2 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile4 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile5 = image.ofBuffer(hex``);
helpers._registerFactory("tilemap", function(name: string) {
switch(helpers.stringTrim(name)) {
case "level2":
case "level2":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`, img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`, [myTiles.transparency16], TileScale.Sixteen);
case "level1":
case "level1":return tiles.createTilemap(hex`10001000050404040404040404060b0b0b0b0b0b010909090909090909030b0b0b0b0b0b01090a090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b010909090909090909030b0b0b0b0b0b070202020202020202080b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b`, img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`, [myTiles.transparency16,sprites.castle.tilePath4,sprites.castle.tilePath8,sprites.castle.tilePath6,sprites.castle.tilePath2,sprites.castle.tilePath1,sprites.castle.tilePath3,sprites.castle.tilePath7,sprites.castle.tilePath9,sprites.castle.tilePath5,myTiles.tile1,sprites.castle.tileGrass1], TileScale.Sixteen);
case "level5":
case "level5":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`, img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`, [myTiles.transparency16], TileScale.Sixteen);
case "level6":
case "level6":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`, img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`, [myTiles.transparency16], TileScale.Sixteen);
case "level7":
case "level7":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`, img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`, [myTiles.transparency16], TileScale.Sixteen);
case "level8":
case "level8":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`, img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`, [myTiles.transparency16], TileScale.Sixteen);
case "level4":
case "level4":return tiles.createTilemap(hex`230019000202020202020202020202020c0202020000000000000000000000000000000000000002030303030603030303030303030302000000000000000000000000000000000000000203030303030303030303070303030200000000000000000000000000000000000000020304030303040303060303030103020000000000000000000000000000000000000002030303030303030303030a0303030200000000000000000000000000000000000000020303030303060303030a0a0303030200000000000000000000000000000000000000020303060309010707010a0306030302000000000000000000000000000000000000000203030303090a0a07010303030303020000000000000000000000000000000000000002030303030a0a030e0703030303030200000000000000000000000000000000000000020303070303030306030303030302020202020202020202020000000000000000000002030303030303030303030303010103030303030303030302000000000000000000000203030308080603030103030101010303030303070303030200000000000000000000020304030308080303030301010101040303060103030303020000000000000000000002030303060308080303010101010103030303030a0303030200000000000000000000020305030303030803010101010101060303030a0a03030302000000000000000000000202020202020202020203030603090903030a0a0306030302000000000000000000000000000000000000000203030303090b0b030a030303030302000000000000000000000000000000000000000203010303090b0303030303030303020000000000000000000000000000000000000002030307030303030603030303030302000000000000000000000000000000000000000203030303030301030103080806030200000000000000000000000000000000000000020303030808060303030703080303020000000000000000000000000000000000000002030103030808030301030101010302000000000000000000000000000000000000000203030306030808030306010d0103020000000000000000000000000000000000000002030503030303080303030101010302000000000000000000000000000000000000000202020202020202020202020202020200000000000000000000`, img`
2222222222222222...................
2..............2...................
2..............2...................
2..............2...................
2..............2...................
2..............2...................
2..............2...................
2..............2...................
2.......2......2...................
2.............22222222222..........
2.......................2..........
2.......................2..........
2.......................2..........
2.......................2..........
2.......................2..........
2222222222..............2..........
.........2..............2..........
.........2..............2..........
.........2..............2..........
.........2..............2..........
.........2..............2..........
.........2..............2..........
.........2..............2..........
.........2..............2..........
.........2222222222222222..........
`, [myTiles.transparency16,myTiles.tile2,sprites.builtin.brick,sprites.dungeon.floorDark2,sprites.dungeon.floorDark1,sprites.dungeon.floorDark5,sprites.dungeon.floorMixed,sprites.dungeon.floorDark3,sprites.dungeon.floorDark0,sprites.dungeon.floorLight1,sprites.dungeon.floorDarkDiamond,sprites.dungeon.floorLightMoss,sprites.dungeon.doorClosedNorth,myTiles.tile5,sprites.dungeon.chestClosed], TileScale.Sixteen);
case "level3":
case "level3":return tiles.createTilemap(hex`28001e000e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0000000000000000000000000000000000000000000000000e01010101030101010101010101010e0000000000000000000000000000000000000000000000000e01010101010101010101040101010e0000000000000000000000000000000000000000000000000e0106010101060101030101010a01101010101010101010101010120000000000000000000000000e010101010101010101010901010111111111111111111111110f140000000000000000000000000e01010101010301010109090101010e0000000000000000000013140000000000000000000000000e01010301080a04040a09010301010e0000000000000000000013140000000000000000000000000e01010101080909040a01010101010e0000000000000000000013140000000000000000000000000e01010101090901010401010101010e00000000000000000e0e13140e0e0e0e0e0e0e00000000000e010104010101010301010101010e0e0e0e0e0e150e0e0e0e0303030303030303030e00000000000e010101010101010101010101010e0101010101010101010e0303030303030303030e00000000000e01010107070301010a010101030e0101010101040101010e0303030303030303030e00000000000e010601010707010101010609030e060101030a010101010e0303030303030303030e00000000000e010101030107070101010909030e0101010101090101010e0303030303031603030e00000000000e01020101010107010e0e0e0e0e0e0301010109090101010e0303030303030303030e00000000000e0e0e0e0e0e0e0e0e0e01010301080801010909010301010a0303030303030303030e00000000000000000000000000000e01010101080505010901010101010a0303030303030303030e00000000000000000000000000000e010a0101080501010101010101010e0303030303030303030e00000000000000000000000000000e01010401010101030101010101010e0303030a0a0a0303030e00000000000000000000000000000e0101010101010a010a01070703010e0303030a0c0a0303030e00000000000000000000000000000e01010107070301010104010701010e0303030a0a0a0303030e00000000000000000000000000000e010a0101070701010a01030303010e0e0e0e0e0e0e0e0e0e0e00000000000000000000000000000e01010103010707010103030303010e0000000000000000000000000000000000000000000000000e01020101010107010101030303010e0000000000000000000000000000000000000000000000000e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000000000000000000000000000000d`, img`
2222222222222222........................
2..............2........................
2..............22222222222222...........
2...........................2...........
2...........................2...........
2..............22222222222..2...........
2..............2.........2..2...........
2..............2.........2..2...........
2..............2........22..2222222.....
2.............22222222222.........2.....
2.............2.........2.........2.....
2.............2.........2.........2.....
2.............2.........2.........2.....
2.............2.........2......2..2.....
2........222222.........2.........2.....
2222222222........................2.....
.........2........................2.....
.........2..............2.........2.....
.........2..............2.........2.....
.........2..............2.........2.....
.........2..............2.........2.....
.........2..............22222222222.....
.........2..............2...............
.........2..............2...............
.........2222222222222222...............
........................................
........................................
........................................
........................................
........................................
`, [myTiles.transparency16,sprites.dungeon.floorDark2,sprites.dungeon.floorDark5,sprites.dungeon.floorMixed,sprites.dungeon.floorDark3,sprites.dungeon.floorLightMoss,sprites.dungeon.floorDark1,sprites.dungeon.floorDark0,sprites.dungeon.floorLight1,sprites.dungeon.floorDarkDiamond,myTiles.tile2,myTiles.tile4,myTiles.tile5,sprites.dungeon.doorOpenNorth,sprites.builtin.brick,sprites.dungeon.darkGroundCenter,sprites.dungeon.darkGroundNorth,sprites.dungeon.darkGroundSouth,sprites.dungeon.darkGroundNorthEast0,sprites.dungeon.darkGroundWest,sprites.dungeon.darkGroundEast,sprites.dungeon.doorClosedNorth,sprites.dungeon.chestClosed], TileScale.Sixteen);
}
return null;
})
helpers._registerFactory("tile", function(name: string) {
switch(helpers.stringTrim(name)) {
case "transparency16":return transparency16;
case "Hole":
case "tile1":return tile1;
case "myTile0":
case "tile3":return tile3;
case "myTile":
case "tile2":return tile2;
case "myTile1":
case "tile4":return tile4;
case "myTile2":
case "tile5":return tile5;
}
return null;
})
}
// Auto-generated code. Do not edit.