refactor: new roomage

This commit is contained in:
cha0s 2019-03-28 02:14:57 -05:00
parent ec0e3c873c
commit b3169117f3
3 changed files with 19 additions and 8 deletions

View File

@ -0,0 +1,4 @@
{
"imageUri": "/tileset-half.png",
"tileSize": [16, 16]
}

BIN
resource/tileset-half.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -37,21 +37,28 @@ function flowerBarrelJSON(position) {
} }
// Room. // Room.
const roomJSON = { const roomJSON = {
size: [384, 192],
layers: { layers: {
everything: { everything: {
entities: [], entities: [],
tiles: { tiles: {
size: [12, 6], size: [24, 12],
data: [ data: [
1, 5, 6, 7, 1, 2, 3, 4, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7,
1, 5, 6, 7, 1, 66, 67, 68, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7,
1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 2 , 3 , 4 , 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7,
1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 66, 67, 68, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7,
1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7,
1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7, 1, 5, 6, 7, 1, 5 , 6 , 7 , 1, 5, 6, 7,
1, 5, 6, 7, 1, 5 , 6 ,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