-
Notifications
You must be signed in to change notification settings - Fork 5
/
tilemap.g.ts
47 lines (44 loc) · 2.17 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
// 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``);
helpers._registerFactory("tilemap", function(name: string) {
switch(helpers.stringTrim(name)) {
case "level1":
case "level1":return tiles.createTilemap(hex`1000100001010101010101010101010101010101010606060606060606060606060606010106020202020202020202020202060101060206060606060606060606020601010602060202020606050505060206010106020602060606060606050602060101060206020606060606060506020601010602060606060606060606060206010106020606060606060606060602060101060206030606060606060406020601010602060306060606060604060206010106020603030306060404040602060101060206060606060606060606020601010602020202020202020202020206010106060606060606060606060606060101010101010101010101010101010101`, 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 . . . 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,sprites.castle.tileGrass2,sprites.builtin.brick,sprites.dungeon.hazardLava0,myTiles.tile2,sprites.vehicle.roadHorizontal], TileScale.Sixteen);
}
return null;
})
helpers._registerFactory("tile", function(name: string) {
switch(helpers.stringTrim(name)) {
case "transparency16":return transparency16;
case "myTile":
case "tile1":return tile1;
case "myTile0":
case "tile2":return tile2;
}
return null;
})
}
// Auto-generated code. Do not edit.