-
Notifications
You must be signed in to change notification settings - Fork 0
/
tilemap.g.ts
103 lines (100 loc) · 9.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
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
// 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 tile4 = image.ofBuffer(hex``);
//% fixedInstance jres blockIdentity=images._tile
export const tile2 = 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``);
//% fixedInstance jres blockIdentity=images._tile
export const tile13 = 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``);
helpers._registerFactory("tilemap", function(name: string) {
switch(helpers.stringTrim(name)) {
case "level1":
case "level1":return tiles.createTilemap(hex`64001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006020700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006020505040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060207000000000000000000090808080a00000000000000000e0d0d0d0e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006050505020700000000000000000305050400000000000000000b0000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006020700000000000000000605050505050507000000000000060202020207000000000000000b0001000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000605050400000000000000060505050505050504000000000006050505050504000000000000000b0000000b000000000e0d0d0d0e0000000000000000000000000000000000000000000000000000000000000000000000000f000000000000020202020505050502020202020202050505050505050505020202020205050505050505020202020202020202020202020200000b0000000b00000000000000000000000000000000000000000000000000000000000000000000000e0e0e0000000000050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050500000b0001000b000000000000000000000000000000000000000000000000000000000000000000000e0e0e0e0e00000000050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050500000b0000000b0000000000000000000000000000000000000000000000000000000000000000000e0e0e0e0e0e0e00000005050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c`, img`
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
.............................................2......................................................
................................222..........2......................................................
................................222..........2......................................................
..............................22222..........2......................................................
..................222.........22222..........2......................................................
.................222222......................2......................................................
.....222........22222222......222222.........2......................................................
....2222.......222222222.....2222222................................................................
22222222222222222222222222222222222222222222222222..........................................222.....
......................................................2....................................22222....
......................................................2...................................2222222...
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
`, [myTiles.transparency16,sprites.dungeon.collectibleInsignia,myTiles.tile1,myTiles.tile3,myTiles.tile4,myTiles.tile5,myTiles.tile6,myTiles.tile7,myTiles.tile2,myTiles.tile8,myTiles.tile9,myTiles.tile10,myTiles.tile11,myTiles.tile12,myTiles.tile13,myTiles.tile17], TileScale.Sixteen);
}
return null;
})
helpers._registerFactory("tile", function(name: string) {
switch(helpers.stringTrim(name)) {
case "transparency16":return transparency16;
case "Grass up":
case "tile1":return tile1;
case "Grass left":
case "tile3":return tile3;
case "Grass right":
case "tile4":return tile4;
case "Grass down":
case "tile2":return tile2;
case "Dirt":
case "tile5":return tile5;
case "Grass left up":
case "tile6":return tile6;
case "Grass right up":
case "tile7":return tile7;
case "Grass left down":
case "tile8":return tile8;
case "Grass down right":
case "tile9":return tile9;
case "Piller":
case "tile10":return tile10;
case "myTile":
case "tile11":return tile11;
case "Piller2":
case "tile12":return tile12;
case "Piller3":
case "tile13":return tile13;
case "myTile1":
case "tile15":return tile15;
case "myTile3":
case "tile17":return tile17;
}
return null;
})
}
// Auto-generated code. Do not edit.