Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace myTiles {
- //% blockIdentity=images._tile
- export const tile0 = img`
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . . . . . . .
- `
- //% blockIdentity=images._tile
- export const tile1 = img`
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
- `
- }
- music.powerUp.play()
- let mySprite = sprites.create(img`
- . . . . . . . . . . . . . .
- e e e . . . . e e e . . . .
- c d d c . . c d d c . . . .
- c b d d f f d d b c . . . .
- c 3 b d d b d b 3 c . . . .
- f b 3 d d d d 3 b f . . . .
- e d d d d d d d d e . . . .
- e d f d d d d f d e . b f b
- f d d f d d f d d f . f d f
- f b d d b b d d 2 b f f d f
- . f 2 2 2 2 2 2 d b b d b f
- . f d d d d d d d f f f f .
- . . f d b d f d f . . . . .
- . . . f f f f f f . . . . .
- `, SpriteKind.Player)
- let mySprite2 = sprites.create(img`
- . . . . . 3 3 b 3 3 d d 3 3 . .
- . . . . 3 1 1 d 3 d 1 1 1 1 3 .
- . . . 3 d 1 1 1 d 1 1 1 d 3 1 3
- . . 3 d d 1 1 1 d d 1 1 1 3 3 3
- . 3 1 1 d 1 1 1 1 d d 1 1 b . .
- . 3 1 1 1 d 1 1 1 1 1 d 1 1 3 .
- . b d 1 1 1 d 1 1 1 1 1 1 1 3 .
- . 4 b 1 1 1 1 d d 1 1 1 1 d 3 .
- . 4 4 d 1 1 1 1 1 1 d d d b b .
- . 4 d b d 1 1 1 1 1 1 1 1 3 . .
- 4 d d 5 b d 1 1 1 1 1 1 1 3 . .
- 4 5 d 5 5 b b d 1 1 1 1 d 3 . .
- 4 5 5 d 5 5 d b b b d d 3 . . .
- 4 5 5 5 d d d d 4 4 b 3 . . . .
- . 4 5 5 5 4 4 4 . . . . . . . .
- . . 4 4 4 . . . . . . . . . . .
- `, SpriteKind.Food)
- mySprite2.setPosition(245, 245)
- scene.cameraFollowSprite(mySprite)
- controller.moveSprite(mySprite)
- tiles.setTilemap(tiles.createTilemap(
- hex`1000100002020302020202020202020202030202020302020303030303030303030302030202020302020202030202020202020303020303020203020202020202030202020202050202020203030203020203020203020303030303030302030203030202020202020202020302020302020302020302030303030203020303020303040203020202030202030203030202020402030203020302020302030302030203020302030203030303020203020202030203020302020202020202020502020202030203030303030302020303030305020302030202020203020203030305020203020302020202030202030303050502020202020202020302020303030506`,
- 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 . .
- `,
- [myTiles.tile0,myTiles.tile1,sprites.dungeon.darkGroundSouthEast1,sprites.dungeon.greenOuterNorth0,sprites.dungeon.darkGroundNorthWest0,sprites.dungeon.darkGroundCenter,sprites.dungeon.collectibleInsignia],
- TileScale.Sixteen
- ))
- game.onUpdate(function () {
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement