diff --git a/assets/tilesets/smb-16.png b/assets/tilesets/smb-16.png new file mode 100644 index 0000000..16171f2 Binary files /dev/null and b/assets/tilesets/smb-16.png differ diff --git a/package.json b/package.json index 68b3085..31d968a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "build:assets-woz": "node ./tools/png2iigs.js ./assets/woz.png ./emu/bg1a.bin --start-index 6 && node ./tools/pngtoiigs.js ./assets/woz-shifted.png ./emu/bg1b.bin --start-index 6 && node ./tools/pngtoiigs.js ./assets/donut-plains-1-6-color.png ./emu/fg1.bin", "build:assets-woz-fatbits": "node ./tools/png2iigs.js ./assets/woz-pixelated.png ./emu/bg1a.bin --start-index 6 && node ./tools/pngtoiigs.js ./assets/woz-shifted.png ./emu/bg1b.bin --start-index 6 && node ./tools/pngtoiigs.js ./assets/donut-plains-1-6-color.png ./emu/fg1.bin", "build:assets-color-cycle": "node ./tools/png2iigs.js ./assets/rotopattern.png ./emu/bg1a.bin --start-index 6 && node ./tools/pngtoiigs.js ./assets/woz-shifted.png ./emu/bg1b.bin --start-index 6 && node ./tools/pngtoiigs.js ./assets/donut-plains-1-6-color.png ./emu/fg1.bin", - "build:map": "node ./tools/tiled2iigs.js ./assets/tiled/world_1-1.json > ./src/Level.s" + "build:map": "node ./tools/tiled2iigs.js ./assets/tiled/world_1-1.json > ./src/Level.s", + "build:tiles": "node ./tools/png2iigs.js ./assets/tilesets/smb-16.png --as-tile-data > src/App.Tile.s" }, "repository": { "type": "git", diff --git a/src/App.Main.s b/src/App.Main.s index 2c09f0d..650d3ec 100644 --- a/src/App.Main.s +++ b/src/App.Main.s @@ -980,8 +980,13 @@ GrafInit dw $0156,$0288,$03A8,$07B8,$0034,$0013,$0470,$0051 ; Plant -DefaultPalette dw $0EEF,$0342,$0C95,$0852,$0DB4,$00C0 +;DefaultPalette dw $0EEF,$0342,$0C95,$0852,$0DB4,$00C0 dw $0222,$0333,$0444,$0888,$09A0,$0680,$0470,$0051 + +; SMB +DefaultPalette dw $0E51,$0EDB,$0000,$068F,$0BF1,$00A0,$0EEE,$0777,$0FA4,$0F59,$0E05,$0F30 + dw $0680,$0470,$0051 + ; Return the current border color ($0 - $F) in the accumulator GetBorderColor lda #0000 sep #$20 @@ -1226,3 +1231,5 @@ qtRec adrl $0000 PUT Level.s + + diff --git a/src/App.Tile.s b/src/App.Tile.s index 1d7ecc7..9561621 100644 --- a/src/App.Tile.s +++ b/src/App.Tile.s @@ -1,66 +1,2821 @@ +; startIndex = 0 +; Palette: +; $0E51,$0EDB,$0000,$068F,$0BF1,$00A0,$0EEE,$0777,$0FA4,$0F59,$0E05,$0F30 +; Converting to BG0 format... tiledata ENT +; Tile ID 0 +; From image coordinates 0, 0 + hex 01111111 + hex 10000000 + hex 10000000 + hex 10000000 + hex 10000000 + hex 10000000 + hex 10000000 + hex 10000000 - hex 0000F000 - hex 000FF000 - hex 0000F000 - hex 0000F000 - hex 0000F000 - hex 0000F000 - hex 000FFF00 +; Tile ID 1 +; From image coordinates 8, 0 + hex 12011110 + hex 02100002 + hex 02100002 + hex 02100002 + hex 02120002 + hex 02022220 + hex 02111112 + hex 02100002 + +; Tile ID 2 +; From image coordinates 16, 0 + hex 10000000 + hex 10000000 + hex 22000000 + hex 11220000 + hex 10112222 + hex 10001112 + hex 10000002 + hex 02222220 + +; Tile ID 3 +; From image coordinates 24, 0 + hex 02100002 + hex 02100002 + hex 21000002 + hex 21000002 + hex 10000002 + hex 10000002 + hex 10000022 + hex 12222220 + +; Tile ID 4 +; From image coordinates 32, 0 + hex 01111111 + hex 10111111 + hex 11011111 + hex 11101111 + hex 11110000 + hex 11110000 + hex 11110000 + hex 11110000 + +; Tile ID 5 +; From image coordinates 40, 0 + hex 11111112 + hex 11111122 + hex 11111222 + hex 11112222 + hex 00002222 + hex 00002222 + hex 00002222 + hex 00002222 + +; Tile ID 6 +; From image coordinates 48, 0 + hex 11110000 + hex 11110000 + hex 11110000 + hex 11110000 + hex 11122222 + hex 11222222 + hex 12222222 + hex 22222222 + +; Tile ID 7 +; From image coordinates 56, 0 + hex 00002222 + hex 00002222 + hex 00002222 + hex 00002222 + hex 22220222 + hex 22222022 + hex 22222202 + hex 22222220 + +; Tile ID 8 +; From image coordinates 64, 0 + hex 33333334 + hex 33333334 + hex 33333334 + hex 33333334 + hex 33333334 + hex 33333334 + hex 33333334 + hex 33333334 + +; Tile ID 9 +; From image coordinates 72, 0 + hex 43333333 + hex 43333333 + hex 43333333 + hex 43333333 + hex 43333333 + hex 43333333 + hex 43333333 + hex 43333333 + +; Tile ID 10 +; From image coordinates 80, 0 + hex 22222222 + hex 24444444 + hex 25555544 + hex 24445544 + hex 24445544 + hex 24445544 + hex 24445544 + hex 24445544 + +; Tile ID 11 +; From image coordinates 88, 0 + hex 22222222 + hex 44444444 + hex 44445555 + hex 44445445 + hex 44445445 + hex 44445445 + hex 44445445 + hex 44445445 + +; Tile ID 12 +; From image coordinates 96, 0 + hex 22222222 + hex 44444444 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + +; Tile ID 13 +; From image coordinates 104, 0 + hex 22222222 + hex 44444442 + hex 55555552 + hex 54545442 + hex 55454442 + hex 54545442 + hex 55454442 + hex 54545442 + +; Tile ID 14 +; From image coordinates 112, 0 + hex 24445544 + hex 24445544 + hex 24445544 + hex 24445544 + hex 24445544 + hex 24445544 + hex 22222222 + hex 33222222 + +; Tile ID 15 +; From image coordinates 120, 0 + hex 44445445 + hex 44445445 + hex 44445445 + hex 44445445 + hex 44445445 + hex 44445445 + hex 22222222 + hex 22222222 + +; Tile ID 16 +; From image coordinates 128, 0 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 22222222 + hex 22222222 + +; Tile ID 17 +; From image coordinates 136, 0 + hex 55454442 + hex 54545442 + hex 55454442 + hex 54545442 + hex 55454442 + hex 54545442 + hex 22222222 + hex 22222233 + +; Tile ID 18 +; From image coordinates 144, 0 + hex 33244455 + hex 33244455 + hex 33244455 + hex 33244455 + hex 33244455 + hex 33244455 + hex 33244455 + hex 33244455 + +; Tile ID 19 +; From image coordinates 152, 0 + hex 44444544 + hex 44444544 + hex 44444544 + hex 44444544 + hex 44444544 + hex 44444544 + hex 44444544 + hex 44444544 + +; Tile ID 20 +; From image coordinates 160, 0 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + +; Tile ID 21 +; From image coordinates 168, 0 + hex 45444233 + hex 54544233 + hex 45444233 + hex 54544233 + hex 45444233 + hex 54544233 + hex 45444233 + hex 54544233 + +; Tile ID 22 +; From image coordinates 176, 0 + hex 00000000 + hex 00002000 + hex 00002000 + hex 00002000 + hex 00020000 + hex 00020000 + hex 00020000 hex 00000000 - hex 000FF000 - hex 00F00F00 - hex 00000F00 - hex 0000F000 - hex 000F0000 - hex 00F00000 - hex 00FFFF00 - hex 00000000 +; Tile ID 23 +; From image coordinates 184, 0 + hex 11110002 + hex 00010002 + hex 00010002 + hex 00012222 + hex 00010000 + hex 00010000 + hex 00010000 + hex 22211111 - hex 000FF000 - hex 00F00F00 - hex 00000F00 - hex 0000F000 - hex 00000F00 - hex 00F00F00 - hex 000FF000 - hex 00000000 +; Tile ID 24 +; From image coordinates 192, 0 + hex 00011111 + hex 00010000 + hex 00010000 + hex 22210000 + hex 00010000 + hex 00010000 + hex 00010000 + hex 11112222 - hex 00F00F00 - hex 00F00F00 - hex 00F00F00 - hex 00FFFF00 - hex 00000F00 - hex 00000F00 - hex 00000F00 - hex 00000000 +; Tile ID 25 +; From image coordinates 200, 0 + hex 00000002 + hex 00000002 + hex 00000002 + hex 22222222 + hex 00020000 + hex 00020000 + hex 00020000 + hex 22222222 - hex 00FFFF00 - hex 00F00000 - hex 00F00000 - hex 00FFF000 - hex 00000F00 - hex 00000F00 - hex 00FFF000 - hex 00000000 +; Tile ID 26 +; From image coordinates 208, 0 + hex 32222222 + hex 20000000 + hex 20200000 + hex 20000000 + hex 20000000 + hex 20000000 + hex 20000000 + hex 20000000 - hex 01234567 - hex 01234567 - hex 01234567 - hex 01234567 - hex 01234567 - hex 01234567 - hex 01234567 - hex 01234567 +; Tile ID 27 +; From image coordinates 216, 0 + hex 22222223 + hex 00000002 + hex 00000202 + hex 00000002 + hex 00000002 + hex 00000002 + hex 00000002 + hex 00000002 - hex 89ABCDEF - hex 89ABCDEF - hex 89ABCDEF - hex 89ABCDEF - hex 89ABCDEF - hex 89ABCDEF - hex 89ABCDEF - hex 89ABCDEF +; Tile ID 28 +; From image coordinates 224, 0 + hex 20000000 + hex 20000000 + hex 20000000 + hex 20000000 + hex 20000000 + hex 20200000 + hex 20000000 + hex 32222222 + +; Tile ID 29 +; From image coordinates 232, 0 + hex 00000002 + hex 00000002 + hex 00000002 + hex 00000002 + hex 00000002 + hex 00000202 + hex 00000002 + hex 22222223 + +; Tile ID 30 +; From image coordinates 240, 0 + hex 11113333 + hex 00013333 + hex 00013333 + hex 00013333 + hex 00013333 + hex 00013333 + hex 00013333 + hex 22211111 + +; Tile ID 31 +; From image coordinates 248, 0 + hex 33311111 + hex 33310000 + hex 33310000 + hex 33310000 + hex 33310000 + hex 33310000 + hex 33310000 + hex 11112222 + +; Tile ID 32 +; From image coordinates 256, 0 + hex 00000222 + hex 00022222 + hex 00222222 + hex 22222222 + hex 02222222 + hex 02222222 + hex 22222222 + hex 22222222 + +; Tile ID 33 +; From image coordinates 264, 0 + hex 22200002 + hex 22222002 + hex 22222202 + hex 22222222 + hex 22222220 + hex 22222220 + hex 22222222 + hex 22222222 + +; Tile ID 34 +; From image coordinates 272, 0 + hex 33333322 + hex 33333245 + hex 33332455 + hex 33332455 + hex 33332555 + hex 33332555 + hex 33333255 + hex 33333322 + +; Tile ID 35 +; From image coordinates 280, 0 + hex 22333333 + hex 55233333 + hex 55523333 + hex 55523333 + hex 55523333 + hex 55523333 + hex 55233333 + hex 22333333 + +; Tile ID 36 +; From image coordinates 288, 0 + hex 33322222 + hex 33244444 + hex 32444444 + hex 32444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + +; Tile ID 37 +; From image coordinates 296, 0 + hex 22222222 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + +; Tile ID 38 +; From image coordinates 304, 0 + hex 22222333 + hex 44444233 + hex 44444423 + hex 44444423 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + +; Tile ID 39 +; From image coordinates 312, 0 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 40 +; From image coordinates 0, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 41 +; From image coordinates 8, 8 + hex 33333322 + hex 33333244 + hex 33322444 + hex 33244444 + hex 33244444 + hex 33244444 + hex 32444554 + hex 24445444 + +; Tile ID 42 +; From image coordinates 16, 8 + hex 22333333 + hex 44233333 + hex 44423333 + hex 44423233 + hex 44442423 + hex 45444442 + hex 44544442 + hex 44444442 + +; Tile ID 43 +; From image coordinates 24, 8 + hex 33333222 + hex 33332444 + hex 33324444 + hex 33344444 + hex 32244444 + hex 24444444 + hex 24444444 + hex 32444444 + +; Tile ID 44 +; From image coordinates 32, 8 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + +; Tile ID 45 +; From image coordinates 40, 8 + hex 23323333 + hex 23242333 + hex 42442333 + hex 44442323 + hex 44444242 + hex 44444442 + hex 44444442 + hex 44444423 + +; Tile ID 46 +; From image coordinates 48, 8 + hex 66726666 + hex 11726111 + hex 11726111 + hex 11726111 + hex 11726111 + hex 11726111 + hex 77727777 + hex 22222222 + +; Tile ID 47 +; From image coordinates 56, 8 + hex 66666672 + hex 61111172 + hex 61111172 + hex 61111172 + hex 61111172 + hex 61111172 + hex 77777772 + hex 22222222 + +; Tile ID 48 +; From image coordinates 64, 8 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444442 + hex 32444423 + hex 33222233 + +; Tile ID 49 +; From image coordinates 72, 8 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444442 + hex 24444423 + hex 32222233 + +; Tile ID 50 +; From image coordinates 80, 8 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444442 + hex 24444425 + hex 52222255 + +; Tile ID 51 +; From image coordinates 88, 8 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 24444442 + hex 32444423 + hex 33222233 + +; Tile ID 52 +; From image coordinates 96, 8 + hex 33333361 + hex 33333631 + hex 33333113 + hex 33361333 + hex 33311333 + hex 36133333 + hex 63133333 + hex 11333333 + +; Tile ID 53 +; From image coordinates 104, 8 + hex 33332111 + hex 33332111 + hex 33332111 + hex 33332111 + hex 33332111 + hex 33332211 + hex 33333212 + hex 33332121 + +; Tile ID 54 +; From image coordinates 112, 8 + hex 11123333 + hex 12123333 + hex 12123333 + hex 12123333 + hex 12123333 + hex 11223333 + hex 21233333 + hex 12123333 + +; Tile ID 55 +; From image coordinates 120, 8 + hex 33333332 + hex 33333325 + hex 33333255 + hex 33332555 + hex 33325555 + hex 33255555 + hex 32555555 + hex 25555555 + +; Tile ID 56 +; From image coordinates 128, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333222 + hex 33222555 + hex 22555555 + +; Tile ID 57 +; From image coordinates 136, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 22233333 + hex 55522233 + hex 55555522 + +; Tile ID 58 +; From image coordinates 144, 8 + hex 23333333 + hex 52333333 + hex 55233333 + hex 55523333 + hex 55552333 + hex 55555233 + hex 55555523 + hex 55555552 + +; Tile ID 59 +; From image coordinates 152, 8 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + +; Tile ID 60 +; From image coordinates 160, 8 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + +; Tile ID 61 +; From image coordinates 168, 8 + hex 55555255 + hex 55552225 + hex 55552225 + hex 55552225 + hex 52252225 + hex 52255255 + hex 52255555 + hex 52255555 + +; Tile ID 62 +; From image coordinates 176, 8 + hex 66666666 + hex 36666666 + hex 33666666 + hex 33366666 + hex 33336666 + hex 33333666 + hex 33333366 + hex 33333336 + +; Tile ID 63 +; From image coordinates 184, 8 + hex 66666666 + hex 65555566 + hex 55656556 + hex 56656656 + hex 56555656 + hex 55565556 + hex 55555556 + hex 66555666 + +; Tile ID 64 +; From image coordinates 192, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 65 +; From image coordinates 200, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 66 +; From image coordinates 208, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 67 +; From image coordinates 216, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 68 +; From image coordinates 224, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 69 +; From image coordinates 232, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 70 +; From image coordinates 240, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 71 +; From image coordinates 248, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 72 +; From image coordinates 256, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 73 +; From image coordinates 264, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 74 +; From image coordinates 272, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 75 +; From image coordinates 280, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 76 +; From image coordinates 288, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 77 +; From image coordinates 296, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 78 +; From image coordinates 304, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 79 +; From image coordinates 312, 8 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 80 +; From image coordinates 0, 16 + hex 45444233 + hex 54542222 + hex 45424444 + hex 54524444 + hex 45424444 + hex 54244444 + hex 45255555 + hex 54255555 + +; Tile ID 81 +; From image coordinates 8, 16 + hex 33333333 + hex 22222222 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 55555555 + hex 55555555 + +; Tile ID 82 +; From image coordinates 16, 16 + hex 32222222 + hex 22444444 + hex 22444444 + hex 22444444 + hex 22444444 + hex 22555555 + hex 22555555 + hex 22444444 + +; Tile ID 83 +; From image coordinates 24, 16 + hex 22222222 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 55555552 + hex 55555552 + hex 44444442 + +; Tile ID 84 +; From image coordinates 32, 16 + hex 22222222 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 25555555 + hex 25555555 + hex 24444444 + +; Tile ID 85 +; From image coordinates 40, 16 + hex 22222223 + hex 44444422 + hex 44444422 + hex 44444422 + hex 44444422 + hex 55555522 + hex 55555522 + hex 44444422 + +; Tile ID 86 +; From image coordinates 48, 16 + hex 33333333 + hex 22222222 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 55555555 + hex 55555555 + +; Tile ID 87 +; From image coordinates 56, 16 + hex 33244454 + hex 22224545 + hex 44442454 + hex 44442545 + hex 44442454 + hex 44444245 + hex 55555254 + hex 55555245 + +; Tile ID 88 +; From image coordinates 64, 16 + hex 43333334 + hex 42333332 + hex 43233324 + hex 43233324 + hex 43322234 + hex 43333334 + hex 43333334 + hex 43333334 + +; Tile ID 89 +; From image coordinates 72, 16 + hex 33322222 + hex 332bbbbb + hex 32bbbbbb + hex 32bbbbbb + hex 2bbbbbbb + hex 2bbbbbbb + hex 2bbbbbbb + hex 2bbbbbb8 + +; Tile ID 90 +; From image coordinates 80, 16 + hex 22222222 + hex b8888888 + hex b8888888 + hex b8888888 + hex b8888888 + hex 88888888 + hex 888bbb88 + hex 88bbbbb8 + +; Tile ID 91 +; From image coordinates 88, 16 + hex 22222222 + hex bbbbbbbb + hex bbbbbbbb + hex bbbbbbbb + hex bbbbbbbb + hex 8bbbbbb8 + hex 88bbbb88 + hex 88888888 + +; Tile ID 92 +; From image coordinates 96, 16 + hex 22222333 + hex 88888233 + hex 88888823 + hex 88888823 + hex 888bbb82 + hex 88bbbbb2 + hex 8bbbbbb2 + hex 8bbbbbb2 + +; Tile ID 93 +; From image coordinates 104, 16 + hex 22222222 + hex 8bbbbbbb + hex 8bbbbbbb + hex 88bbbbbb + hex 88888888 + hex 88888888 + hex 8888888b + hex 8888888b + +; Tile ID 94 +; From image coordinates 112, 16 + hex 22222222 + hex b8888888 + hex b8888888 + hex 88888888 + hex 88888888 + hex bbbbb888 + hex bbbbbb88 + hex bbbbbb88 + +; Tile ID 95 +; From image coordinates 120, 16 + hex 33833333 + hex 38788330 + hex 38788887 + hex 87888880 + hex 87888880 + hex 87888880 + hex 87888880 + hex 87888880 + +; Tile ID 96 +; From image coordinates 128, 16 + hex 33333833 + hex 73388283 + hex 78888283 + hex 78888828 + hex 78888828 + hex 78888828 + hex 78888828 + hex 78888828 + +; Tile ID 97 +; From image coordinates 136, 16 + hex 33322222 + hex 33266666 + hex 32666666 + hex 32666666 + hex 32666666 + hex 26666666 + hex 26666626 + hex 26666626 + +; Tile ID 98 +; From image coordinates 144, 16 + hex 22222333 + hex 66666233 + hex 66666623 + hex 66666623 + hex 66666623 + hex 66666662 + hex 62666662 + hex 62666662 + +; Tile ID 99 +; From image coordinates 152, 16 + hex 33333333 + hex 33333333 + hex 33333322 + hex 33332244 + hex 33324444 + hex 33244444 + hex 32444444 + hex 32444444 + +; Tile ID 100 +; From image coordinates 160, 16 + hex 33333333 + hex 33333333 + hex 22333333 + hex 44223333 + hex 44442333 + hex 44444233 + hex 44444423 + hex 44444423 + +; Tile ID 101 +; From image coordinates 168, 16 + hex 33331011 + hex 33331011 + hex 00111011 + hex 00001011 + hex 22221011 + hex 33331011 + hex 33331011 + hex 33331010 + +; Tile ID 102 +; From image coordinates 176, 16 + hex 10023333 + hex 00023333 + hex 00021111 + hex 00020000 + hex 00022222 + hex 00023333 + hex 00023333 + hex 10023333 + +; Tile ID 103 +; From image coordinates 184, 16 + hex 26662666 + hex 26662666 + hex 26662666 + hex 26662666 + hex 27772777 + hex b777b777 + hex b777b777 + hex b777b777 + +; Tile ID 104 +; From image coordinates 192, 16 + hex 33339333 + hex 93339333 + hex 93393339 + hex 99393339 + hex 39393399 + hex 3939339a + hex 3a99339a + hex 33aa999a + +; Tile ID 105 +; From image coordinates 200, 16 + hex 9a333339 + hex 9a33339a + hex 9a3339a3 + hex a3333a33 + hex a9999a33 + hex aaaaa933 + hex 3333aa93 + hex 333333a3 + +; Tile ID 106 +; From image coordinates 208, 16 + hex 55666666 + hex 56666555 + hex 66655666 + hex 26556666 + hex 52566555 + hex 52566555 + hex 52565555 + hex 25565555 + +; Tile ID 107 +; From image coordinates 216, 16 + hex 66666625 + hex 55555522 + hex 55556662 + hex 65565556 + hex 52665555 + hex 52655555 + hex 55255555 + hex 55225552 + +; Tile ID 108 +; From image coordinates 224, 16 + hex 11133333 + hex 12221111 + hex 11122222 + hex 11121111 + hex 12221111 + hex 12222222 + hex 12222222 + hex 12222222 + +; Tile ID 109 +; From image coordinates 232, 16 + hex 33333111 + hex 11111122 + hex 22222111 + hex 11111111 + hex 11111122 + hex 22222122 + hex 22222122 + hex 22222122 + +; Tile ID 110 +; From image coordinates 240, 16 + hex 33312222 + hex 33312222 + hex 33122222 + hex 33122222 + hex 31220000 + hex 31200011 + hex 12200111 + hex 12200101 + +; Tile ID 111 +; From image coordinates 248, 16 + hex 22220333 + hex 22220333 + hex 22222033 + hex 22222033 + hex 00002203 + hex 11000203 + hex 11100203 + hex 10100220 + +; Tile ID 112 +; From image coordinates 256, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 113 +; From image coordinates 264, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 114 +; From image coordinates 272, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 115 +; From image coordinates 280, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 116 +; From image coordinates 288, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 117 +; From image coordinates 296, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 118 +; From image coordinates 304, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 119 +; From image coordinates 312, 16 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 120 +; From image coordinates 0, 24 + hex 45244444 + hex 54244444 + hex 42444444 + hex 52444444 + hex 42444444 + hex 52555555 + hex 42444444 + hex 52444444 + +; Tile ID 121 +; From image coordinates 8, 24 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 55555555 + hex 44444444 + hex 44444444 + +; Tile ID 122 +; From image coordinates 16, 24 + hex 22444444 + hex 22444444 + hex 22444444 + hex 22444444 + hex 22555555 + hex 22444444 + hex 22444444 + hex 22444444 + +; Tile ID 123 +; From image coordinates 24, 24 + hex 44444442 + hex 44444442 + hex 44444442 + hex 44444442 + hex 55555552 + hex 44444442 + hex 44444442 + hex 44444442 + +; Tile ID 124 +; From image coordinates 32, 24 + hex 24444444 + hex 24444444 + hex 24444444 + hex 24444444 + hex 25555555 + hex 24444444 + hex 24444444 + hex 24444444 + +; Tile ID 125 +; From image coordinates 40, 24 + hex 44444422 + hex 44444422 + hex 44444422 + hex 44444422 + hex 55555522 + hex 44444422 + hex 44444422 + hex 44444422 + +; Tile ID 126 +; From image coordinates 48, 24 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 44444444 + hex 55555555 + hex 44444444 + hex 44444444 + +; Tile ID 127 +; From image coordinates 56, 24 + hex 44444254 + hex 44444245 + hex 44444424 + hex 44444425 + hex 44444424 + hex 55555525 + hex 44444424 + hex 44444425 + +; Tile ID 128 +; From image coordinates 64, 24 + hex 22233322 + hex 11123211 + hex 11000001 + hex 11000001 + hex 11000001 + hex 11000001 + hex 11123211 + hex 22233322 + +; Tile ID 129 +; From image coordinates 72, 24 + hex 2bbbbb88 + hex 28888888 + hex 28888888 + hex 28888888 + hex 28888888 + hex 28888888 + hex 32288888 + hex 33322222 + +; Tile ID 130 +; From image coordinates 80, 24 + hex 8bbbbbbb + hex 8bbbbbbb + hex 8bbbbbbb + hex 88bbbbb8 + hex 888bbb88 + hex 88888888 + hex 88888888 + hex 22222222 + +; Tile ID 131 +; From image coordinates 88, 24 + hex 88888888 + hex 88888888 + hex 88888888 + hex 88888888 + hex 88888888 + hex 88888888 + hex 88888888 + hex 22222222 + +; Tile ID 132 +; From image coordinates 96, 24 + hex 8bbbbbb2 + hex 88bbbbb2 + hex 888bbb82 + hex 88888882 + hex 88888882 + hex 88888882 + hex 88888822 + hex 22222223 + +; Tile ID 133 +; From image coordinates 104, 24 + hex 888888bb + hex 888888bb + hex 888888bb + hex 888888bb + hex 8888888b + hex 8888888b + hex 88888888 + hex 22222222 + +; Tile ID 134 +; From image coordinates 112, 24 + hex bbbbbbb8 + hex bbbbbbb8 + hex bbbbbbb8 + hex bbbbbbb8 + hex bbbbbb88 + hex bbbbbb88 + hex bbbbb888 + hex 22222222 + +; Tile ID 135 +; From image coordinates 120, 24 + hex 38788880 + hex 38788330 + hex 33833337 + hex 33333330 + hex 33333337 + hex 33333330 + hex 33333337 + hex 33333330 + +; Tile ID 136 +; From image coordinates 128, 24 + hex 78888283 + hex 73338283 + hex 73333833 + hex 73333333 + hex 73333333 + hex 73333333 + hex 73333333 + hex 73333333 + +; Tile ID 137 +; From image coordinates 136, 24 + hex 26666626 + hex 26666666 + hex 26266666 + hex 32666266 + hex 32666622 + hex 32666666 + hex 33266662 + hex 33322223 + +; Tile ID 138 +; From image coordinates 144, 24 + hex 62666662 + hex 66666662 + hex 66666262 + hex 66266623 + hex 22666623 + hex 66666623 + hex 26666233 + hex 32222333 + +; Tile ID 139 +; From image coordinates 152, 24 + hex 32444444 + hex 32444444 + hex 32444444 + hex 33244444 + hex 33224444 + hex 33322244 + hex 33332222 + hex 33333222 + +; Tile ID 140 +; From image coordinates 160, 24 + hex 44444423 + hex 44444423 + hex 44444423 + hex 44444233 + hex 44442233 + hex 44222333 + hex 22223333 + hex 22223333 + +; Tile ID 141 +; From image coordinates 168, 24 + hex 33331010 + hex 33331010 + hex 00111010 + hex 00001010 + hex 22221011 + hex 33331011 + hex 33331011 + hex 33331011 + +; Tile ID 142 +; From image coordinates 176, 24 + hex 10023333 + hex 10023333 + hex 10021111 + hex 10020000 + hex 10022222 + hex 10023333 + hex 10023333 + hex 10023333 + +; Tile ID 143 +; From image coordinates 184, 24 + hex b777b777 + hex b777b777 + hex b777b777 + hex 27772777 + hex 2bbb2bbb + hex 2bbb2bbb + hex 2bbb2bbb + hex 2bbb2bbb + +; Tile ID 144 +; From image coordinates 192, 24 + hex 3333aa9a + hex 3933339a + hex 3939939a + hex 39393399 + hex 33993339 + hex 333a9339 + hex 3333a999 + hex 33333aaa + +; Tile ID 145 +; From image coordinates 200, 24 + hex 33393333 + hex 33933333 + hex 33933393 + hex a39aa393 + hex a9a33aa3 + hex 9aa3333a + hex 9a333333 + hex 9a333333 + +; Tile ID 146 +; From image coordinates 208, 24 + hex 65265555 + hex 62666655 + hex 62655565 + hex 66555552 + hex 66555552 + hex 65555522 + hex 65552222 + hex 52222225 + +; Tile ID 147 +; From image coordinates 216, 24 + hex 55222262 + hex 55222622 + hex 55522652 + hex 55226552 + hex 52226522 + hex 66665522 + hex 65555225 + hex 22222225 + +; Tile ID 148 +; From image coordinates 224, 24 + hex 12222211 + hex 12222122 + hex 12221221 + hex 12221212 + hex 12221212 + hex 12221220 + hex 11121222 + hex 12231222 + +; Tile ID 149 +; From image coordinates 232, 24 + hex 11222122 + hex 22022122 + hex 12202122 + hex 20202122 + hex 20202122 + hex 02201122 + hex 22202111 + hex 22203122 + +; Tile ID 150 +; From image coordinates 240, 24 + hex 12201001 + hex 12201001 + hex 12201001 + hex 12201111 + hex 12200010 + hex 12200011 + hex 12220000 + hex 12222222 + +; Tile ID 151 +; From image coordinates 248, 24 + hex 10010220 + hex 10010220 + hex 10010220 + hex 11110220 + hex 01000220 + hex 11000220 + hex 00002220 + hex 22222220 + +; Tile ID 152 +; From image coordinates 256, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 153 +; From image coordinates 264, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 154 +; From image coordinates 272, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 155 +; From image coordinates 280, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 156 +; From image coordinates 288, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 157 +; From image coordinates 296, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 158 +; From image coordinates 304, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 159 +; From image coordinates 312, 24 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 160 +; From image coordinates 0, 32 + hex 42555555 + hex 52555555 + hex 42555555 + hex 52555555 + hex 42555555 + hex 52555555 + hex 45255555 + hex 54255555 + +; Tile ID 161 +; From image coordinates 8, 32 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + +; Tile ID 162 +; From image coordinates 16, 32 + hex 22444444 + hex 22555555 + hex 22555555 + hex 22555555 + hex 22555555 + hex 22555555 + hex 22555555 + hex 22555555 + +; Tile ID 163 +; From image coordinates 24, 32 + hex 44444442 + hex 55555552 + hex 55555552 + hex 55555552 + hex 55555552 + hex 55555552 + hex 55555552 + hex 55555552 + +; Tile ID 164 +; From image coordinates 32, 32 + hex 24444444 + hex 25555555 + hex 25555555 + hex 25555555 + hex 25555555 + hex 25555555 + hex 25555555 + hex 25555555 + +; Tile ID 165 +; From image coordinates 40, 32 + hex 44444422 + hex 55555522 + hex 55555522 + hex 55555522 + hex 55555522 + hex 55555522 + hex 55555522 + hex 55555522 + +; Tile ID 166 +; From image coordinates 48, 32 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + hex 55555555 + +; Tile ID 167 +; From image coordinates 56, 32 + hex 55555524 + hex 55555525 + hex 55555524 + hex 55555525 + hex 55555524 + hex 55555525 + hex 55555254 + hex 55555245 + +; Tile ID 168 +; From image coordinates 64, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 169 +; From image coordinates 72, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 170 +; From image coordinates 80, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 171 +; From image coordinates 88, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 172 +; From image coordinates 96, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 173 +; From image coordinates 104, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 174 +; From image coordinates 112, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 175 +; From image coordinates 120, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 176 +; From image coordinates 128, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 177 +; From image coordinates 136, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 178 +; From image coordinates 144, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 179 +; From image coordinates 152, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 180 +; From image coordinates 160, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 181 +; From image coordinates 168, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 182 +; From image coordinates 176, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 183 +; From image coordinates 184, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 184 +; From image coordinates 192, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 185 +; From image coordinates 200, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 186 +; From image coordinates 208, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 187 +; From image coordinates 216, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 188 +; From image coordinates 224, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 189 +; From image coordinates 232, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 190 +; From image coordinates 240, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 191 +; From image coordinates 248, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 192 +; From image coordinates 256, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 193 +; From image coordinates 264, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 194 +; From image coordinates 272, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 195 +; From image coordinates 280, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 196 +; From image coordinates 288, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 197 +; From image coordinates 296, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 198 +; From image coordinates 304, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 199 +; From image coordinates 312, 32 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 200 +; From image coordinates 0, 40 + hex 45255555 + hex 54254545 + hex 45245454 + hex 54524545 + hex 45424444 + hex 54524444 + hex 45442222 + hex 54544233 + +; Tile ID 201 +; From image coordinates 8, 40 + hex 55555555 + hex 45454545 + hex 54545454 + hex 45454545 + hex 44444444 + hex 44444444 + hex 22222222 + hex 33333333 + +; Tile ID 202 +; From image coordinates 16, 40 + hex 22555555 + hex 22555555 + hex 22545454 + hex 22454545 + hex 22545454 + hex 22444444 + hex 22444444 + hex 32222222 + +; Tile ID 203 +; From image coordinates 24, 40 + hex 55555552 + hex 55555552 + hex 54545452 + hex 45454542 + hex 54545452 + hex 44444442 + hex 44444442 + hex 22222222 + +; Tile ID 204 +; From image coordinates 32, 40 + hex 25555555 + hex 25555555 + hex 25454545 + hex 24545454 + hex 25454545 + hex 24444444 + hex 24444444 + hex 22222222 + +; Tile ID 205 +; From image coordinates 40, 40 + hex 55555522 + hex 55555522 + hex 45454522 + hex 54545422 + hex 45454522 + hex 44444422 + hex 44444422 + hex 22222223 + +; Tile ID 206 +; From image coordinates 48, 40 + hex 55555555 + hex 54545454 + hex 45454545 + hex 54545454 + hex 44444444 + hex 44444444 + hex 22222222 + hex 33333333 + +; Tile ID 207 +; From image coordinates 56, 40 + hex 55555254 + hex 54545245 + hex 45454254 + hex 54542545 + hex 44442454 + hex 44442545 + hex 22224454 + hex 33244545 + +; Tile ID 208 +; From image coordinates 64, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 209 +; From image coordinates 72, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 210 +; From image coordinates 80, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 211 +; From image coordinates 88, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 212 +; From image coordinates 96, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 213 +; From image coordinates 104, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 214 +; From image coordinates 112, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 215 +; From image coordinates 120, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 216 +; From image coordinates 128, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 217 +; From image coordinates 136, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 218 +; From image coordinates 144, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 219 +; From image coordinates 152, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 220 +; From image coordinates 160, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 221 +; From image coordinates 168, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 222 +; From image coordinates 176, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 223 +; From image coordinates 184, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 224 +; From image coordinates 192, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 225 +; From image coordinates 200, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 226 +; From image coordinates 208, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 227 +; From image coordinates 216, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 228 +; From image coordinates 224, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 229 +; From image coordinates 232, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 230 +; From image coordinates 240, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 231 +; From image coordinates 248, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 232 +; From image coordinates 256, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 233 +; From image coordinates 264, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 234 +; From image coordinates 272, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 235 +; From image coordinates 280, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 236 +; From image coordinates 288, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 237 +; From image coordinates 296, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 238 +; From image coordinates 304, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 239 +; From image coordinates 312, 40 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 240 +; From image coordinates 0, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 241 +; From image coordinates 8, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 242 +; From image coordinates 16, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 243 +; From image coordinates 24, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 244 +; From image coordinates 32, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 245 +; From image coordinates 40, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 246 +; From image coordinates 48, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 247 +; From image coordinates 56, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 248 +; From image coordinates 64, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 249 +; From image coordinates 72, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 250 +; From image coordinates 80, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 251 +; From image coordinates 88, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 252 +; From image coordinates 96, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 253 +; From image coordinates 104, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 254 +; From image coordinates 112, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + +; Tile ID 255 +; From image coordinates 120, 48 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 + hex 33333333 -tileend diff --git a/src/Level.s b/src/Level.s index bae822e..06dbce9 100644 --- a/src/Level.s +++ b/src/Level.s @@ -14,483 +14,483 @@ BG0SetUp rts Tile_Layer_1 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,11,12,13,14 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,15,16,17,18 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,11,12,13,14 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,57,58,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,15,16,17,18 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,56,21,62,59,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,11,12,13,14,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,56,21,21,21,21,59,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,57,58,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,15,16,17,18,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,56,21,62,21,21,62,21,59,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,42,43,42,43,42,43,41,41 - dw 41,56,21,62,59,41,41,41,41,41,41,41,41,41,41,41 - dw 42,43,41,41,41,41,41,41,19,20,21,22,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,41,42,43,42,43,41,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 56,21,21,21,21,21,21,21,21,59,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,44,45,45,45,45,45,45,46,41 - dw 56,21,21,21,21,59,41,41,41,41,41,41,41,41,41,44 - dw 45,45,46,41,41,41,41,41,19,20,21,22,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 - dw 41,41,41,44,45,45,45,45,46,41,41,41,19,20,21,22 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 - dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,10,11,12,13 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,14,15,16,17 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,10,11,12,13 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,56,57,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,14,15,16,17 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,55,20,61,58,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,10,11,12,13,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,55,20,20,20,20,58,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,56,57,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,14,15,16,17,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,55,20,61,20,20,61,20,58,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,41,42,41,42,41,42,40,40 + dw 40,55,20,61,58,40,40,40,40,40,40,40,40,40,40,40 + dw 41,42,40,40,40,40,40,40,18,19,20,21,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,40,41,42,41,42,40,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 55,20,20,20,20,20,20,20,20,58,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,43,44,44,44,44,44,44,45,40 + dw 55,20,20,20,20,58,40,40,40,40,40,40,40,40,40,43 + dw 44,44,45,40,40,40,40,40,18,19,20,21,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,18,19,20,21 + dw 40,40,40,43,44,44,44,44,45,40,40,40,18,19,20,21 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + dw 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 diff --git a/tools/png2iigs.js b/tools/png2iigs.js index 94c9870..e272615 100644 --- a/tools/png2iigs.js +++ b/tools/png2iigs.js @@ -36,7 +36,7 @@ function pngToIIgsBuff(png) { const j = y * (png.width / 2) + Math.floor(x / 2); if (index > 15) { - console.warn('Pixel index greater than 15. Skipping...'); + console.warn('; Pixel index greater than 15. Skipping...'); continue; } @@ -72,7 +72,7 @@ function pngToIIgsBuffRepeat(png) { const j = y * png.width + Math.floor(x / 2); if (index > 15) { - console.warn('Pixel index greater than 15. Skipping...'); + console.warn('; Pixel index greater than 15. Skipping...'); continue; } @@ -101,7 +101,10 @@ function paletteToIIgs(palette) { function getArg(argv, arg, fn, defaultValue) { for (let i = 0; i < argv.length; i += 1) { if (argv[i] === arg) { - return fn(argv[i+1]); + if (fn) { + return fn(argv[i+1]); + } + return true; // REturn true if the argument was found } } return defaultValue; @@ -111,60 +114,97 @@ async function main(argv) { const data = await fs.readFile(argv[0]); const png = PNG.sync.read(data); startIndex = getArg(argv, '--start-index', x => parseInt(x, 10), 0); + asTileData = getArg(argv, '--as-tile-data', null, 0); + transparentColor = getArg(argv, '--transparent-color-index', x => parseInt(x, 10), 0); - console.info(`startIndex = ${startIndex}`); + console.info(`; startIndex = ${startIndex}`); if (png.colorType !== 3) { - console.warn('PNG must be in palette color type'); + console.warn('; PNG must be in palette color type'); return; } if (png.palette.length > 16) { - console.warn('Too many colors. Must be 16 or less'); + console.warn('; Too many colors. Must be 16 or less'); return; } // Dump the palette in IIgs hex format - console.log('Palette:'); + console.log('; Palette:'); const hexCodes = png.palette.map(c => '$' + paletteToIIgs(c)); - console.log(hexCodes.join(',')); + console.log(';', hexCodes.join(',')); - // Just convert a paletted PNG to IIgs memory format + // Just convert a paletted PNG to IIgs memory format. We make sute that only a few widths + // are supported let buff = null; + if (png.width === 512) { - console.log('Converting to BG1 format...'); + console.log('; Converting to BG1 format...'); buff = pngToIIgsBuff(png); } if (png.width === 256) { - console.log('Converting to BG1 format w/repeat...'); + console.log('; Converting to BG1 format w/repeat...'); buff = pngToIIgsBuffRepeat(png); } - if (png.width === 328) { - console.log('Converting to BG0 format...'); + if (png.width === 328 || png.width == 320) { + console.log('; Converting to BG0 format...'); buff = pngToIIgsBuff(png); } if (buff && argv[1]) { - console.log(`Writing to output file ${argv[1]}`); - - // Write a small header. This is useful and avoids triggering a sparse file load - // bug when the first block of the file on the GS/OS drive is sparse. - - // Put the ASCII text of "GTERAW" in the first 6 bytes - const header = Buffer.alloc(8); - header.write('GTERAW', 'latin1'); - - // Use the special value $A5A5 to identify no transparency - if (typeof transparentColor !== 'number') { - header.writeUInt16LE(0xA5A5); - } else { - header.writeUInt16LE(0x1111 * transparentColor, 6); + if (asTileData) { + writeToTileDataSource(buff, png.width / 2); + } + else { + console.log(`; Writing to output file ${argv[1]}`); + await writeBinayOutput(argv[1], buff); } - - await fs.writeFile(argv[1], Buffer.concat([header, buff])); } } +function writeToTileDataSource(buff, width) { + console.log('tiledata ENT'); + + let count = 0; + for (let y = 0; ; y += 8) { + for (let x = 0; x < width; x += 4, count += 1) { + if (count >= 256) { + return; + } + console.log('; Tile ID ' + count); + console.log('; From image coordinates ' + (x * 2) + ', ' + y); + + const offset = y * width + x; + for (dy = 0; dy < 8; dy += 1) { + const hex0 = buff[offset + dy * width + 0].toString(16).padStart(2, '0'); + const hex1 = buff[offset + dy * width + 1].toString(16).padStart(2, '0'); + const hex2 = buff[offset + dy * width + 2].toString(16).padStart(2, '0'); + const hex3 = buff[offset + dy * width + 3].toString(16).padStart(2, '0'); + console.log(' hex ' + hex0 + hex1 + hex2 + hex3); + } + console.log(); + } + } +} + +async function writeBinayOutput(filename, buff) { + // Write a small header. This is useful and avoids triggering a sparse file load + // bug when the first block of the file on the GS/OS drive is sparse. + + // Put the ASCII text of "GTERAW" in the first 6 bytes + const header = Buffer.alloc(8); + header.write('GTERAW', 'latin1'); + + // Use the special value $A5A5 to identify no transparency + if (typeof transparentColor !== 'number') { + header.writeUInt16LE(0xA5A5); + } else { + header.writeUInt16LE(0x1111 * transparentColor, 6); + } + + await fs.writeFile(filename, Buffer.concat([header, buff])); +} + diff --git a/tools/tiled2iigs.js b/tools/tiled2iigs.js index 7556ffa..60b4e95 100644 --- a/tools/tiled2iigs.js +++ b/tools/tiled2iigs.js @@ -85,7 +85,8 @@ BG0SetUp for (let i = 0; i < tileIDs.length; i += N) { chunks.push(tileIDs.slice(i, i + N)) } + // Tiled starts numbering its tiles at 1, swtich to a more sane approach... :) for (const chunk of chunks) { - console.log(' dw ' + chunk.join(',')); + console.log(' dw ' + chunk.map(t => t - 1).join(',')); } } \ No newline at end of file