153 lines
9.5 KiB
TypeScript
153 lines
9.5 KiB
TypeScript
// Auto-generated code. Do not edit.
|
|
namespace myTiles {
|
|
//% fixedInstance jres blockIdentity=images._tile
|
|
export const transparency16 = 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`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004040404040700000000000000000000000000000006000000000000000000000800050000060000000000000000000004040404040304000000000000000001000000000000000000000000000000020000000000000000000004000000000204040404040404040404040404040403`, 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
|
|
`, [myTiles.transparency16,sprites.castle.tilePath1,sprites.castle.tilePath4,sprites.castle.tilePath5,sprites.castle.tilePath2,sprites.dungeon.doorOpenNorth,sprites.castle.tilePath6,sprites.castle.tilePath3,sprites.dungeon.collectibleRedCrystal], TileScale.Sixteen);
|
|
case "level3":
|
|
case "level3":return tiles.createTilemap(hex`1000100000000000000000000002000000000000000000000000000000020000000000000000000000000000000200000000000000000000000000000002000000000000000000000000000000020000000000000000000000000000000200000000000000000000000000000002000000000000000000000000000000020000000000000000000000000000000200000000000000000000000000000002000000000000000000000000000000020000000000000000000000000000000200000000000000000000000000000002000000000000000000000000000000020000000000000000000000000000000200030000040001010101010101010101010101010101`, 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
|
|
`, [myTiles.transparency16,sprites.castle.tilePath2,sprites.castle.tilePath4,sprites.dungeon.doorOpenNorth,sprites.dungeon.collectibleRedCrystal], TileScale.Sixteen);
|
|
case "level4":
|
|
case "level4":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000040000000000000000000000000100000100000000000000000000050102000002000000000000000005010202020000020000000000000501020202020200000200000000050102020202020202010102010101010202020202020202`, 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
|
|
`, [myTiles.transparency16,sprites.castle.tilePath2,sprites.castle.tilePath5,sprites.dungeon.collectibleRedCrystal,sprites.dungeon.doorOpenNorth,sprites.castle.tilePath1], TileScale.Sixteen);
|
|
case "level5":
|
|
case "level5":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000010101010101010101010000000000000000000000000000000000000000000000000000000000000000000000000000040005000000000000000000000000000101010101000000000000000000000000000000000000000000000000000000020202020202020202020202020202020303030303030303030303030303030303030303030303030303030303030303`, img`
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . 2 . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
2 2 2 2 2 2 2 2 2 2 . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
2 2 2 2 2 . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
`, [myTiles.transparency16,sprites.castle.tilePath2,sprites.swamp.swampTile7,sprites.swamp.swampTile9,sprites.dungeon.collectibleRedCrystal,sprites.dungeon.doorOpenNorth], TileScale.Sixteen);
|
|
case "level6":
|
|
case "level6":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000010101010101010101010101010101010202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202`, 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
|
|
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,sprites.castle.tilePath2,sprites.castle.tilePath5,sprites.dungeon.collectibleRedCrystal], TileScale.Sixteen);
|
|
case "level7":
|
|
case "level7":return tiles.createTilemap(hex`1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000010101010101010303030303030303030202020202020202020201010101010102020202020202020202000000000000020202020202020202020001000000000202020202020202020200000000050002020204020202020202010101010101020202020202020202020202020202020202020202020202020202020202020202020202020402020202020202020202`, img`
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
2 2 2 2 2 2 2 . . . . . . . . .
|
|
. . . . . . . . . . 2 2 2 2 2 2
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . 2 . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . 2 2 2 2 2 2
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
. . . . . . . . . . . . . . . .
|
|
`, [myTiles.transparency16,sprites.castle.tilePath2,sprites.swamp.swampTile9,sprites.swamp.swampTile7,sprites.swamp.swampTile13,sprites.dungeon.collectibleRedCrystal,sprites.dungeon.doorOpenNorth], TileScale.Sixteen);
|
|
}
|
|
return null;
|
|
})
|
|
|
|
helpers._registerFactory("tile", function(name: string) {
|
|
switch(helpers.stringTrim(name)) {
|
|
case "transparency16":return transparency16;
|
|
}
|
|
return null;
|
|
})
|
|
|
|
}
|
|
// Auto-generated code. Do not edit.
|