-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtilemap.g.ts
78 lines (75 loc) · 3.33 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
// 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 tile2 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile3 = 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 tile6 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile7 = 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``);
helpers._registerFactory("tilemap", function(name: string) {
switch(helpers.stringTrim(name)) {
case "level":
case "level":return tiles.createTilemap(hex`0a0008000202020201020202020202020101010101010202020201010101010102020202010101010101020202020101010101010202020201010101010102020202010101010101020202020202020202020202`, img`
2 2 2 2 . 2 2 2 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 2 2 2 2 2 2 2 2
`, [myTiles.transparency16,myTiles.tile1,myTiles.tile2], TileScale.Sixteen);
case "level_0":
case "level_0":return tiles.createTilemap(hex`0a0008000707070400030202070707070501000001060707070b0101000001010c07070b010100000101070707070101000001010c07070b0101000001010c0707070800000000090707070707070a0a07070702`, img`
2 2 2 2 . 2 2 2 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 . . . . . . 2 2
2 2 2 2 2 2 2 2 2 2
`, [myTiles.transparency16,myTiles.tile1,myTiles.tile2,myTiles.tile3,myTiles.tile4,myTiles.tile5,myTiles.tile6,myTiles.tile7,myTiles.tile8,myTiles.tile9,myTiles.tile10,myTiles.tile11,myTiles.tile12], TileScale.Sixteen);
}
return null;
})
helpers._registerFactory("tile", function(name: string) {
switch(helpers.stringTrim(name)) {
case "transparency16":return transparency16;
case "tile1":return tile1;
case "tile2":return tile2;
case "tile3":return tile3;
case "tile4":return tile4;
case "tile5":return tile5;
case "tile6":return tile6;
case "tile7":return tile7;
case "tile8":return tile8;
case "tile9":return tile9;
case "tile10":return tile10;
case "tile11":return tile11;
case "tile12":return tile12;
}
return null;
})
}
// Auto-generated code. Do not edit.