-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtilemap.g.ts
149 lines (146 loc) · 8.15 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
// 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 tile3 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile14 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile1 = 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``);
//% fixedInstance jres blockIdentity=images._tile
export const tile8 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile9 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile10 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile11 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile12 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile13 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile7 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile15 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile17 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile6 = image.ofBuffer(hex``);
helpers._registerFactory("tilemap", function(name: string) {
switch(helpers.stringTrim(name)) {
case "level1":
case "level1":return tiles.createTilemap(hex`2000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`, img`
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
................................
`, [myTiles.transparency16,myTiles.tile1,myTiles.tile2,myTiles.tile3,myTiles.tile4,myTiles.tile5], TileScale.Sixteen);
case "tileArray":
case "level3":return tiles.createTilemap(hex`0d0001000201030405060708090a0b0c0d`, img`
. . . . . . . . . . . . .
`, [myTiles.transparency16,myTiles.tile3,myTiles.tile2,myTiles.tile4,myTiles.tile5,myTiles.tile8,myTiles.tile9,myTiles.tile10,myTiles.tile11,myTiles.tile12,myTiles.tile13,myTiles.tile7,myTiles.tile15,myTiles.tile17], TileScale.Sixteen);
case "2048Grid-Standard":
case "level2":return tiles.createTilemap(hex`0a00170008080808080808080808080808080808080808080808080101010108080808080801010101080808080808010101010808080808080101010108080808080808080808080808080808080808080808080108080808080808080802080808080808080808030808080808080808080408080808080808080805080808080808080808070808080808080808080d080808080808080808090808080808080808080a0808080808080808080b0808080808080808080c080808080808080808060808080808080808080e0808080808080808080f08080808080808080810080808080808080808`, img`
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
`, [myTiles.transparency16,myTiles.tile1,myTiles.tile2,myTiles.tile3,myTiles.tile4,myTiles.tile5,myTiles.tile7,myTiles.tile8,myTiles.tile14,myTiles.tile10,myTiles.tile11,myTiles.tile12,myTiles.tile13,myTiles.tile9,myTiles.tile15,myTiles.tile17,myTiles.tile6], TileScale.Sixteen);
}
return null;
})
helpers._registerFactory("tile", function(name: string) {
switch(helpers.stringTrim(name)) {
case "transparency16":return transparency16;
case "Tile_4":
case "tile3":return tile3;
case "blankTile":
case "tile14":return tile14;
case "blankTile0":
case "tile1":return tile1;
case "Tile_2":
case "tile2":return tile2;
case "Tile_0":
case "tile4":return tile4;
case "Tile_16":
case "tile5":return tile5;
case "Tile_32":
case "tile8":return tile8;
case "Tile_64":
case "tile9":return tile9;
case "Tile_128":
case "tile10":return tile10;
case "Tile_256":
case "tile11":return tile11;
case "Tile_512":
case "tile12":return tile12;
case "Tile_1024":
case "tile13":return tile13;
case "Tile_2048":
case "tile7":return tile7;
case "Tile_4096":
case "tile15":return tile15;
case "Tile_8192":
case "tile17":return tile17;
case "16-3k":
case "tile6":return tile6;
}
return null;
})
}
// Auto-generated code. Do not edit.