# HG changeset patch # User David Demelier # Date 1605640122 -3600 # Node ID 64f24b48272221c2c67caf039be81ee5f964327e # Parent 82fd79d5019ea46a959f6196a20e24f36833b776 rpg: implement tilesets separately, closes #2515 @4h While here: - Add CMake macros, - Update maps, - Add more tests. diff -r 82fd79d5019e -r 64f24b482722 CMakeLists.txt --- a/CMakeLists.txt Mon Nov 16 21:57:23 2020 +0100 +++ b/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -44,6 +44,8 @@ include(GNUInstallDirs) include(cmake/MolkoBuildAssets.cmake) +include(cmake/MolkoBuildMaps.cmake) +include(cmake/MolkoBuildTilesets.cmake) include(cmake/MolkoDefineExecutable.cmake) include(cmake/MolkoDefineLibrary.cmake) include(cmake/MolkoDefineTest.cmake) @@ -63,6 +65,7 @@ add_subdirectory(tools/bcc) add_subdirectory(tools/map) +add_subdirectory(tools/tileset) add_subdirectory(libcore) add_subdirectory(libui) diff -r 82fd79d5019e -r 64f24b482722 cmake/MolkoBuildAssets.cmake --- a/cmake/MolkoBuildAssets.cmake Mon Nov 16 21:57:23 2020 +0100 +++ b/cmake/MolkoBuildAssets.cmake Tue Nov 17 20:08:42 2020 +0100 @@ -42,7 +42,7 @@ DEPENDS ${a} $ - COMMENT "Generate header file for ${basename}" + COMMENT "Generate header file from ${basename}" ) list(APPEND ${outputs} ${output}) diff -r 82fd79d5019e -r 64f24b482722 cmake/MolkoBuildMaps.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmake/MolkoBuildMaps.cmake Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,41 @@ +# +# MolkoBuildMaps.cmake -- CMake build system for molko +# +# Copyright (c) 2020 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +macro(molko_build_maps inputs outputs) + set(${outputs}) + + foreach (t ${inputs}) + file(RELATIVE_PATH basename ${CMAKE_CURRENT_SOURCE_DIR} ${t}) + string(REGEX REPLACE "\\.json$" ".map" output ${basename}) + set(output ${CMAKE_CURRENT_BINARY_DIR}/${output}) + get_filename_component(outputdir ${output} DIRECTORY) + file(MAKE_DIRECTORY ${outputdir}) + + add_custom_command( + OUTPUT ${output} + COMMAND + $ < ${t} > ${output} + COMMENT + "Generating map from ${basename}" + DEPENDS $ ${t} + VERBATIM + ) + + list(APPEND ${outputs} ${output}) + endforeach () +endmacro () diff -r 82fd79d5019e -r 64f24b482722 cmake/MolkoBuildTilesets.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmake/MolkoBuildTilesets.cmake Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,41 @@ +# +# MolkoBuildTilesets.cmake -- CMake build system for molko +# +# Copyright (c) 2020 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +macro(molko_build_tilesets inputs outputs) + set(${outputs}) + + foreach (t ${inputs}) + file(RELATIVE_PATH basename ${CMAKE_CURRENT_SOURCE_DIR} ${t}) + string(REGEX REPLACE "\\.json$" ".tileset" output ${basename}) + set(output ${CMAKE_CURRENT_BINARY_DIR}/${output}) + get_filename_component(outputdir ${output} DIRECTORY) + file(MAKE_DIRECTORY ${outputdir}) + + add_custom_command( + OUTPUT ${output} + COMMAND + $ < ${t} > ${output} + COMMENT + "Generating tileset from ${basename}" + DEPENDS $ ${t} + VERBATIM + ) + + list(APPEND ${outputs} ${output}) + endforeach () +endmacro () diff -r 82fd79d5019e -r 64f24b482722 cmake/MolkoDefineLibrary.cmake --- a/cmake/MolkoDefineLibrary.cmake Mon Nov 16 21:57:23 2020 +0100 +++ b/cmake/MolkoDefineLibrary.cmake Tue Nov 17 20:08:42 2020 +0100 @@ -56,11 +56,13 @@ # include(${CMAKE_CURRENT_LIST_DIR}/MolkoBuildAssets.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/MolkoBuildTilesets.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/MolkoBuildMaps.cmake) function(molko_define_library) set(options) set(oneValueArgs FOLDER TARGET TYPE) - set(multiValueArgs ASSETS LIBRARIES PRIVATE_FLAGS PRIVATE_INCLUDES PUBLIC_FLAGS PUBLIC_INCLUDES SOURCES) + set(multiValueArgs ASSETS LIBRARIES MAPS PRIVATE_FLAGS PRIVATE_INCLUDES PUBLIC_FLAGS PUBLIC_INCLUDES TILESETS SOURCES) cmake_parse_arguments(LIB "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) @@ -71,11 +73,20 @@ message(FATAL_ERROR "Missing SOURCES argument") endif () - molko_build_assets("${LIB_ASSETS}" OUTPUTS) + molko_build_assets("${LIB_ASSETS}" ASSETS_OUTPUTS) + molko_build_tilesets("${LIB_TILESETS}" TILESETS_OUTPUTS) + molko_build_maps("${LIB_MAPS}" MAPS_OUTPUTS) if (${LIB_TYPE} MATCHES "INTERFACE") add_library(${LIB_TARGET} INTERFACE) - target_sources(${LIB_TARGET} INTERFACE ${LIB_SOURCES} ${OUTPUTS}) + target_sources( + ${LIB_TARGET} + INTERFACE + ${LIB_SOURCES} + ${ASSETS_OUTPUTS} + ${MAPS_OUTPUTS} + ${TILESETS_OUTPUTS} + ) target_include_directories( ${LIB_TARGET} INTERFACE @@ -83,7 +94,14 @@ ${LIB_PUBLIC_INCLUDES} ) else () - add_library(${LIB_TARGET} ${LIB_TYPE} ${LIB_SOURCES} ${OUTPUTS}) + add_library( + ${LIB_TARGET} + ${LIB_TYPE} + ${LIB_SOURCES} + ${ASSETS_OUTPUTS} + ${MAPS_OUTPUTS} + ${TILESETS_OUTPUTS} + ) target_include_directories( ${LIB_TARGET} PRIVATE diff -r 82fd79d5019e -r 64f24b482722 examples/CMakeLists.txt --- a/examples/CMakeLists.txt Mon Nov 16 21:57:23 2020 +0100 +++ b/examples/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -26,7 +26,20 @@ set( ASSETS_MAPS - ${examples_SOURCE_DIR}/assets/maps/simple.json + ${examples_SOURCE_DIR}/assets/maps/map-rebonai.json + ${examples_SOURCE_DIR}/assets/maps/map-world.json +) + +set( + ASSETS_MAPS_SPRITES + ${examples_SOURCE_DIR}/assets/maps/sprite-town.png + ${examples_SOURCE_DIR}/assets/maps/sprite-world.png +) + +set( + ASSETS_TILESETS + ${examples_SOURCE_DIR}/assets/maps/tileset-town.json + ${examples_SOURCE_DIR}/assets/maps/tileset-world.json ) set( @@ -52,7 +65,6 @@ set( ASSETS ${ASSETS_IMAGES} - ${ASSETS_MAPS} ${ASSETS_MUSIC} ${ASSETS_SOUNDS} ${ASSETS_SPRITES} @@ -61,11 +73,38 @@ # Can't use an interface library as examples live in subdirectories. file(WRITE ${examples_BINARY_DIR}/none.c "void molko() {}") +# These files just need to be copied. +file(MAKE_DIRECTORY ${cmake_BINARY_DIR}/assets/maps) + +foreach (s ${ASSETS_MAPS_SPRITES}) + get_filename_component(basename ${s} NAME) + set(output ${examples_BINARY_DIR}/assets/maps/${basename}) + + add_custom_command( + OUTPUT ${output} + COMMENT "Copy ${basename}" + DEPENDS ${s} + COMMAND ${CMAKE_COMMAND} -E copy ${s} ${output} + VERBATIM + ) + + list(APPEND COPY_OUTPUTS ${output}) +endforeach () + molko_define_library( TARGET libexamples FOLDER examples - SOURCES ${examples_BINARY_DIR}/none.c ${ASSETS} ${ASSETS_MAPS} + SOURCES + ${examples_BINARY_DIR}/none.c + ${COPY_OUTPUTS} + ${ASSETS} + ${ASSETS_MAPS} + ${ASSETS_TILESETS} + PUBLIC_FLAGS + BINDIR="${examples_BINARY_DIR}" ASSETS ${ASSETS} + MAPS ${ASSETS_MAPS} + TILESETS ${ASSETS_TILESETS} ) add_subdirectory(example-action) @@ -89,3 +128,4 @@ source_group("assets/music" FILES ${ASSETS_MUSIC}) source_group("assets/sounds" FILES ${ASSETS_SOUNDS}) source_group("assets/sprites" FILES ${ASSETS_SPRITES}) +source_group("assets/tilesets" FILES ${ASSETS_TILESETS}) diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/map-rebonai.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/assets/maps/map-rebonai.json Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,79 @@ +{ "compressionlevel":-1, + "editorsettings": + { + "export": + { + "target":"." + } + }, + "height":20, + "infinite":false, + "layers":[ + { + "data":[95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95], + "height":20, + "id":1, + "name":"background", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":20, + "x":0, + "y":0 + }, + { + "data":[0, 206, 236, 240, 0, 208, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, 207, 0, 0, 222, 252, 256, 0, 224, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 223, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 6, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 19, 36, 21, 22, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 53, 54, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 67, 68, 69, 54, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 82, 83, 84, 85, 86, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 98, 99, 100, 101, 102, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 114, 115, 116, 117, 118, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130, 131, 132, 133, 134, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 238, 236, 236, 236, 236, 236, 236, 240, 0, 0, 0, 208, 236, 236, 236, 236, 236, 239, 0, 0, 254, 252, 252, 252, 252, 252, 252, 256, 0, 0, 0, 224, 252, 252, 252, 252, 252, 255, 0], + "height":20, + "id":2, + "name":"foreground", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":20, + "x":0, + "y":0 + }, + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + "height":20, + "id":3, + "name":"above", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":20, + "x":0, + "y":0 + }], + "nextlayerid":4, + "nextobjectid":1, + "orientation":"orthogonal", + "properties":[ + { + "name":"origin-x", + "type":"int", + "value":640 + }, + { + "name":"origin-y", + "type":"int", + "value":1152 + }, + { + "name":"title", + "type":"string", + "value":"Rebonai" + }], + "renderorder":"right-down", + "tiledversion":"2020.10.30", + "tileheight":64, + "tilesets":[ + { + "firstgid":1, + "source":"tileset-town.json" + }], + "tilewidth":64, + "type":"map", + "version":1.4, + "width":20 +} \ No newline at end of file diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/map-world.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/assets/maps/map-world.json Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,95 @@ +{ "compressionlevel":-1, + "editorsettings": + { + "export": + { + "target":"." + } + }, + "height":100, + "infinite":false, + "layers":[ + { + "data":[191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 215, 215, 215, 215, 215, 215, 215, 215, 215, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 215, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 261, 168, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 166, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 261, 167, 168, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 166, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 167, 168, 289, 289, 289, 289, 289, 289, 289, 289, 166, 167, 167, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 168, 289, 289, 289, 289, 289, 289, 166, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 261, 167, 167, 167, 167, 167, 167, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191], + "height":100, + "id":1, + "name":"background", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":100, + "x":0, + "y":0 + }, + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + "height":100, + "id":2, + "name":"foreground", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":100, + "x":0, + "y":0 + }, + { + "draworder":"topdown", + "id":5, + "name":"actions", + "objects":[ + { + "height":32, + "id":1, + "name":"", + "properties":[ + { + "name":"exec", + "type":"string", + "value":"teleport:map-rebonai" + }], + "rotation":0, + "type":"", + "visible":true, + "width":67, + "x":1372, + "y":1300 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + }], + "nextlayerid":6, + "nextobjectid":2, + "orientation":"orthogonal", + "properties":[ + { + "name":"origin-x", + "type":"int", + "value":1344 + }, + { + "name":"origin-y", + "type":"int", + "value":1350 + }, + { + "name":"title", + "type":"string", + "value":"World" + }], + "renderorder":"right-down", + "tiledversion":"2020.10.30", + "tileheight":48, + "tilesets":[ + { + "firstgid":1, + "source":"tileset-world.json" + }], + "tilewidth":48, + "type":"map", + "version":1.4, + "width":100 +} \ No newline at end of file diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/simple.json --- a/examples/assets/maps/simple.json Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1780 +0,0 @@ -{ "compressionlevel":-1, - "editorsettings": - { - "export": - { - "target":"." - } - }, - "height":100, - "infinite":false, - "layers":[ - { - "data":[191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 215, 215, 215, 215, 215, 215, 215, 215, 215, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 215, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 237, 216, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 214, 238, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 261, 168, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 166, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 261, 167, 168, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 166, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 167, 168, 289, 289, 289, 289, 289, 289, 289, 289, 166, 167, 167, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 168, 289, 289, 289, 289, 289, 289, 166, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 261, 167, 167, 167, 167, 167, 167, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191], - "height":100, - "id":1, - "name":"background", - "opacity":1, - "type":"tilelayer", - "visible":true, - "width":100, - "x":0, - "y":0 - }, - { - "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0], - "height":100, - "id":2, - "name":"foreground", - "opacity":1, - "type":"tilelayer", - "visible":true, - "width":100, - "x":0, - "y":0 - }, - { - "draworder":"topdown", - "id":5, - "name":"actions", - "objects":[ - { - "height":32, - "id":1, - "name":"", - "properties":[ - { - "name":"exec", - "type":"string", - "value":"teleport:village" - }], - "rotation":0, - "type":"", - "visible":true, - "width":67, - "x":1372, - "y":1300 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - }], - "nextlayerid":6, - "nextobjectid":2, - "orientation":"orthogonal", - "properties":[ - { - "name":"origin-x", - "type":"int", - "value":1344 - }, - { - "name":"origin-y", - "type":"int", - "value":1350 - }, - { - "name":"title", - "type":"string", - "value":"World" - }], - "renderorder":"right-down", - "tiledversion":"2020.10.30", - "tileheight":48, - "tilesets":[ - { - "columns":24, - "firstgid":1, - "image":"simple.png", - "imageheight":1392, - "imagewidth":1152, - "margin":0, - "name":"main", - "spacing":0, - "tilecount":696, - "tileheight":48, - "tiles":[ - { - "id":165, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":6, - "y":6 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":166, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":16, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":6 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":167, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":0, - "y":6 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":184, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":6, - "y":6 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":185, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":0, - "y":6 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":189, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":16, - "x":6, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":191, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":16, - "x":26, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":208, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":6, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":209, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":213, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":6, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":214, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":16, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":26 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":215, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":42, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":42, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":236, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":24, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":24, - "x":24, - "y":24 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":237, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":24, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":24, - "x":0, - "y":24 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":260, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":24, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":24, - "x":24, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":261, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":24, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":24, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":304, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":305, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":306, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":307, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":308, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":309, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":310, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":311, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":328, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":329, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":330, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":331, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":332, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":333, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":334, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":335, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":352, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":353, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":354, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":355, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":356, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":357, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":358, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":359, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":376, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":377, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":378, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":379, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":380, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":381, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":382, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":383, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":384, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":385, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":400, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":401, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":402, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":403, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":404, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":405, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":406, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":407, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":408, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":409, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":2, - "name":"", - "rotation":0, - "type":"collide", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":424, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":425, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":426, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":427, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":428, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":429, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }, - { - "id":430, - "objectgroup": - { - "draworder":"index", - "name":"", - "objects":[ - { - "height":48, - "id":1, - "name":"", - "rotation":0, - "type":"", - "visible":true, - "width":48, - "x":0, - "y":0 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - } - }], - "tilewidth":48 - }], - "tilewidth":48, - "type":"map", - "version":1.4, - "width":100 -} \ No newline at end of file diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/simple.png Binary file examples/assets/maps/simple.png has changed diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/sprite-town.png Binary file examples/assets/maps/sprite-town.png has changed diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/sprite-world.png Binary file examples/assets/maps/sprite-world.png has changed diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/tileset-town.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/assets/maps/tileset-town.json Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,123 @@ +{ "columns":16, + "editorsettings": + { + "export": + { + "format":"", + "target":"." + } + }, + "image":"sprite-town.png", + "imageheight":1024, + "imagewidth":1024, + "margin":0, + "name":"town", + "spacing":0, + "tilecount":256, + "tiledversion":"2020.10.30", + "tileheight":64, + "tiles":[ + { + "id":129, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":40, + "id":9, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":56, + "x":8, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":130, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":40, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":62, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":132, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":40, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":64, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":133, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":40, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":58, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }], + "tilewidth":64, + "type":"tileset", + "version":1.4 +} \ No newline at end of file diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/tileset-world.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/assets/maps/tileset-world.json Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,1690 @@ +{ "columns":24, + "image":"sprite-world.png", + "imageheight":1392, + "imagewidth":1152, + "margin":0, + "name":"main", + "spacing":0, + "tilecount":696, + "tiledversion":"2020.10.30", + "tileheight":48, + "tiles":[ + { + "id":165, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":6, + "y":6 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":166, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":16, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":6 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":167, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":0, + "y":6 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":184, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":6, + "y":6 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":185, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":0, + "y":6 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":189, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":6, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":191, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":26, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":208, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":6, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":209, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":213, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":6, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":214, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":16, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":26 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":215, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":42, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":42, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":236, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":24, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":24, + "x":24, + "y":24 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":237, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":24, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":24, + "x":0, + "y":24 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":260, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":24, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":24, + "x":24, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":261, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":24, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":24, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":304, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":305, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":306, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":307, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":308, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":309, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":310, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":311, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":328, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":329, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":330, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":331, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":332, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":333, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":334, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":335, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":352, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":353, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":354, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":355, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":356, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":357, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":358, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":359, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":376, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":377, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":378, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":379, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":380, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":381, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":382, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":383, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":384, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":385, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":400, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":401, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":402, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":403, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":404, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":405, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":406, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":407, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":408, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":409, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":2, + "name":"", + "rotation":0, + "type":"collide", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":424, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":425, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":426, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":427, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":428, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":429, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":430, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "height":48, + "id":1, + "name":"", + "rotation":0, + "type":"", + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }], + "tilewidth":48, + "type":"tileset", + "version":1.4 +} \ No newline at end of file diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/village.json --- a/examples/assets/maps/village.json Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ -{ "compressionlevel":-1, - "editorsettings": - { - "export": - { - "target":"." - } - }, - "height":40, - "infinite":false, - "layers":[ - { - "data":[241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 40, 41, 41, 41, 12, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 70, 71, 72, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241], - "height":40, - "id":1, - "name":"background", - "opacity":1, - "type":"tilelayer", - "visible":true, - "width":40, - "x":0, - "y":0 - }, - { - "data":[0, 0, 0, 0, 0, 0, 0, 53, 50, 43, 44, 45, 46, 47, 50, 50, 50, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 50, 50, 50, 50, 51, 80, 73, 74, 75, 76, 77, 139, 140, 141, 49, 50, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - "height":40, - "id":2, - "name":"foreground", - "opacity":1, - "type":"tilelayer", - "visible":true, - "width":40, - "x":0, - "y":0 - }, - { - "draworder":"topdown", - "id":3, - "name":"actions", - "objects":[ - { - "height":32, - "id":1, - "name":"", - "properties":[ - { - "name":"exec", - "type":"string", - "value":"teleport:world" - }], - "rotation":0, - "type":"", - "visible":true, - "width":96, - "x":320, - "y":608 - }], - "opacity":1, - "type":"objectgroup", - "visible":true, - "x":0, - "y":0 - }], - "nextlayerid":4, - "nextobjectid":2, - "orientation":"orthogonal", - "properties":[ - { - "name":"origin-x", - "type":"int", - "value":352 - }, - { - "name":"origin-y", - "type":"int", - "value":544 - }, - { - "name":"title", - "type":"string", - "value":"Village useless" - }], - "renderorder":"right-down", - "tiledversion":"2020.10.30", - "tileheight":32, - "tilesets":[ - { - "columns":30, - "firstgid":1, - "image":"village.png", - "imageheight":512, - "imagewidth":960, - "margin":0, - "name":"village", - "spacing":0, - "tilecount":480, - "tileheight":32, - "tilewidth":32 - }], - "tilewidth":32, - "type":"map", - "version":1.4, - "width":40 -} \ No newline at end of file diff -r 82fd79d5019e -r 64f24b482722 examples/assets/maps/village.png Binary file examples/assets/maps/village.png has changed diff -r 82fd79d5019e -r 64f24b482722 examples/example-map/CMakeLists.txt --- a/examples/example-map/CMakeLists.txt Mon Nov 16 21:57:23 2020 +0100 +++ b/examples/example-map/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -18,44 +18,9 @@ project(example-map) -# TODO: replace this once we have a macro to build map. -add_custom_command( - OUTPUT - ${example-map_BINARY_DIR}/simple.map - ${example-map_BINARY_DIR}/simple.png - ${example-map_BINARY_DIR}/village.map - ${example-map_BINARY_DIR}/village.png - DEPENDS - $ - ${examples_SOURCE_DIR}/assets/maps/simple.json - ${examples_SOURCE_DIR}/assets/maps/simple.png - ${examples_SOURCE_DIR}/assets/maps/village.json - ${examples_SOURCE_DIR}/assets/maps/village.png - COMMAND - $ - < ${examples_SOURCE_DIR}/assets/maps/simple.json - > ${example-map_BINARY_DIR}/simple.map - COMMAND - $ - < ${examples_SOURCE_DIR}/assets/maps/village.json - > ${example-map_BINARY_DIR}/village.map - COMMAND - ${CMAKE_COMMAND} -E copy - ${examples_SOURCE_DIR}/assets/maps/simple.png - ${example-map_BINARY_DIR}/simple.png - COMMAND - ${CMAKE_COMMAND} -E copy - ${examples_SOURCE_DIR}/assets/maps/village.png - ${example-map_BINARY_DIR}/village.png -) - molko_define_executable( TARGET example-map - SOURCES - ${example-map_SOURCE_DIR}/main.c - ${example-map_BINARY_DIR}/simple.map - ${example-map_BINARY_DIR}/simple.png + SOURCES ${example-map_SOURCE_DIR}/main.c FOLDER examples LIBRARIES librpg libexamples - FLAGS BINDIR="${example-map_BINARY_DIR}" ) diff -r 82fd79d5019e -r 64f24b482722 examples/example-map/main.c --- a/examples/example-map/main.c Mon Nov 16 21:57:23 2020 +0100 +++ b/examples/example-map/main.c Tue Nov 17 20:08:42 2020 +0100 @@ -62,7 +62,8 @@ game.inhibit &= ~(INHIBIT_STATE_INPUT); - map_init(&ms->map); + if (!map_init(&ms->map)) + panic(); } static void @@ -117,9 +118,9 @@ ms = alloc_zero(1, sizeof (*ms)); ms->loader.load_action = load_action; - snprintf(path, sizeof (path), "%s/%s.map", BINDIR, name); + snprintf(path, sizeof (path), "%s/assets/maps/%s.map", BINDIR, name); - if (!map_file_open(&ms->loader, path, &ms->map)) + if (!map_file_open(&ms->loader, &ms->map, path)) panic(); /* TODO: we may need to add a function in loader. */ @@ -277,7 +278,7 @@ static void run(void) { - game_switch(map_state_new("simple"), true); + game_switch(map_state_new("map-world"), true); game_loop(); } diff -r 82fd79d5019e -r 64f24b482722 libadventure/adventure/state/mainmenu.c --- a/libadventure/adventure/state/mainmenu.c Mon Nov 16 21:57:23 2020 +0100 +++ b/libadventure/adventure/state/mainmenu.c Tue Nov 17 20:08:42 2020 +0100 @@ -56,7 +56,7 @@ new(void) { /* TODO: implement here. */ - if (!map_file_open(&molko.map_file, DIRECTORY "/maps/overworld.map", &molko.map)) + if (!map_file_open(&molko.map_file, &molko.map, DIRECTORY "/maps/overworld.map")) panic(); /* Put a sprite. */ diff -r 82fd79d5019e -r 64f24b482722 libcore/core/animation.c --- a/libcore/core/animation.c Mon Nov 16 21:57:23 2020 +0100 +++ b/libcore/core/animation.c Tue Nov 17 20:08:42 2020 +0100 @@ -61,6 +61,8 @@ bool animation_completed(const struct animation *an) { + assert(an); + return an->elapsed >= an->delay && an->row >= an->sprite->nrows && an->column >= an->sprite->ncols; @@ -95,6 +97,8 @@ bool animation_draw(const struct animation *an, int x, int y) { + assert(an); + return sprite_draw(an->sprite, an->row, an->column, x, y); } diff -r 82fd79d5019e -r 64f24b482722 librpg/CMakeLists.txt --- a/librpg/CMakeLists.txt Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -63,6 +63,10 @@ ${librpg_SOURCE_DIR}/rpg/spell.h ${librpg_SOURCE_DIR}/rpg/teleport.c ${librpg_SOURCE_DIR}/rpg/teleport.h + ${librpg_SOURCE_DIR}/rpg/tileset.c + ${librpg_SOURCE_DIR}/rpg/tileset.h + ${librpg_SOURCE_DIR}/rpg/tileset-file.c + ${librpg_SOURCE_DIR}/rpg/tileset-file.h ${librpg_SOURCE_DIR}/rpg/walksprite.c ${librpg_SOURCE_DIR}/rpg/walksprite.h ) diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/map-file.c --- a/librpg/rpg/map-file.c Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/rpg/map-file.c Tue Nov 17 20:08:42 2020 +0100 @@ -37,29 +37,15 @@ #define MAX_F(v) MAX_F_(v) #define MAX_F_(v) "%" #v "c" -struct parser { +struct context { struct map_file *mf; /* Map loader. */ struct map *map; /* Map object to fill. */ FILE *fp; /* Map file pointer. */ char basedir[PATH_MAX]; /* Parent map directory */ }; -static int -tiledef_cmp(const void *d1, const void *d2) -{ - const struct map_tiledef *mtd1 = d1; - const struct map_tiledef *mtd2 = d2; - - if (mtd1->id < mtd2->id) - return -1; - if (mtd1->id > mtd2->id) - return 1; - - return 0; -} - static bool -parse_tiles(struct parser *ps, const char *layer_name) +parse_layer_tiles(struct context *ctx, const char *layer_name) { enum map_layer_type layer_type; size_t amount, current; @@ -68,56 +54,58 @@ layer_type = MAP_LAYER_TYPE_BACKGROUND; else if (strcmp(layer_name, "foreground") == 0) layer_type = MAP_LAYER_TYPE_FOREGROUND; + else if (strcmp(layer_name, "above") == 0) + layer_type = MAP_LAYER_TYPE_ABOVE; else return errorf("invalid layer type: %s", layer_name); - amount = ps->map->w * ps->map->h; + amount = ctx->map->columns * ctx->map->rows; current = 0; /* * The next line after a layer declaration is a list of plain integer * that fill the layer tiles. */ - if (!(ps->mf->layers[layer_type].tiles = alloc_zero(amount, sizeof (unsigned short)))) + if (!(ctx->mf->layers[layer_type].tiles = alloc_zero(amount, sizeof (unsigned short)))) return false; - for (int tile; fscanf(ps->fp, "%d\n", &tile) && current < amount; ++current) - ps->mf->layers[layer_type].tiles[current] = tile; + for (int tile; fscanf(ctx->fp, "%d\n", &tile) && current < amount; ++current) + ctx->mf->layers[layer_type].tiles[current] = tile; - ps->map->layers[layer_type].tiles = ps->mf->layers[layer_type].tiles; + ctx->map->layers[layer_type].tiles = ctx->mf->layers[layer_type].tiles; return true; } static bool -parse_actions(struct parser *ps) +parse_actions(struct context *ctx) { char exec[128 + 1]; int x = 0, y = 0; unsigned int w = 0, h = 0; - while (fscanf(ps->fp, "%d|%d|%u|%u|%128[^\n]\n", &x, &y, &w, &h, exec) == 5) { + while (fscanf(ctx->fp, "%d|%d|%u|%u|%128[^\n]\n", &x, &y, &w, &h, exec) == 5) { struct action *act; - if (!ps->mf->load_action) { + if (!ctx->mf->load_action) { tracef("ignoring action %d,%d,%u,%u,%s", x, y, w, h, exec); continue; } - if ((act = ps->mf->load_action(ps->map, x, y, w, h, exec))) - action_stack_add(&ps->map->actions, act); + if ((act = ctx->mf->load_action(ctx->map, x, y, w, h, exec))) + action_stack_add(&ctx->map->actions, act); } return true; } static bool -parse_layer(struct parser *ps, const char *line) +parse_layer(struct context *ctx, const char *line) { char layer_name[32 + 1] = {0}; /* Check if weight/height has been specified. */ - if (ps->map->w == 0 || ps->map->h == 0) + if (ctx->map->columns == 0 || ctx->map->rows == 0) return errorf("missing map dimensions before layer"); /* Determine layer type. */ @@ -125,181 +113,105 @@ return errorf("missing layer type definition"); if (strcmp(layer_name, "actions") == 0) - return parse_actions(ps); + return parse_actions(ctx); - return parse_tiles(ps, layer_name); + return parse_layer_tiles(ctx, layer_name); } static bool -parse_tileset(struct parser *ps, const char *line) +parse_tileset(struct context *ctx, const char *line) { - char filename[FILENAME_MAX + 1] = {0}; - char filepath[PATH_MAX]; - int ret; - - if (ps->map->tile_w == 0 || ps->map->tile_h == 0) - return errorf("missing map dimensions before tileset"); + char path[PATH_MAX] = {0}, *p; + struct map_file *mf = ctx->mf; + struct tileset_file *tf = &mf->tileset_file; - if ((ret = sscanf(line, "tileset|" MAX_F(FILENAME_MAX), filename)) == 1) { - snprintf(filepath, sizeof (filepath), "%s/%s", ps->basedir, filename); + if (!(p = strchr(line, '|'))) + return errorf("could not parse tileset"); + + snprintf(path, sizeof (path), "%s/%s", ctx->basedir, p + 1); - if (!image_open(&ps->mf->tileset, filepath)) - return false; - } + if (!tileset_file_open(tf, &mf->tileset, path)) + return false; - /* Initialize sprite. */ - sprite_init(&ps->mf->sprite, &ps->mf->tileset, ps->map->tile_w, ps->map->tile_h); - ps->map->tileset = &ps->mf->sprite; + ctx->map->tileset = &mf->tileset; return true; } static bool -parse_title(struct parser *ps, const char *line) +parse_title(struct context *ctx, const char *line) { - if (sscanf(line, "title|" MAX_F(MAP_FILE_TITLE_MAX), ps->mf->title) != 1 || strlen(ps->mf->title) == 0) + if (sscanf(line, "title|" MAX_F(MAP_FILE_TITLE_MAX), ctx->mf->title) != 1 || strlen(ctx->mf->title) == 0) return errorf("null map title"); - ps->map->title = ps->mf->title; - - return true; -} - -static bool -parse_width(struct parser *ps, const char *line) -{ - if (sscanf(line, "width|%u", &ps->map->w) != 1 || ps->map->w == 0) - return errorf("null map width"); + ctx->map->title = ctx->mf->title; return true; } static bool -parse_height(struct parser *ps, const char *line) -{ - if (sscanf(line, "height|%u", &ps->map->h) != 1 || ps->map->h == 0) - return errorf("null map height"); - - return true; -} - -static bool -parse_tilewidth(struct parser *ps, const char *line) +parse_columns(struct context *ctx, const char *line) { - if (sscanf(line, "tilewidth|%hu", &ps->map->tile_w) != 1 || ps->map->tile_w == 0) - return errorf("null map tile width"); - if (ps->map->w == 0) - return errorf("missing map width before tilewidth"); - - ps->map->real_w = ps->map->w * ps->map->tile_w; - - return true; -} - -static bool -parse_tileheight(struct parser *ps, const char *line) -{ - if (sscanf(line, "tileheight|%hu", &ps->map->tile_h) != 1 || ps->map->tile_h == 0) - return errorf("null map tile height"); - if (ps->map->h == 0) - return errorf("missing map height before tileheight"); - - ps->map->real_h = ps->map->h * ps->map->tile_h; + if (sscanf(line, "columns|%u", &ctx->map->columns) != 1 || ctx->map->columns == 0) + return errorf("null map columns"); return true; } static bool -parse_origin(struct parser *ps, const char *line) +parse_rows(struct context *ctx, const char *line) { - if (sscanf(line, "origin|%d|%d", &ps->map->origin_x, &ps->map->origin_y) != 2) - return errorf("invalid origin"); - - /* - * We adjust the player position here because it should not be done in - * the map_init function. This is because the player should not move - * magically each time we re-use the map (saving position). - */ - ps->map->player_x = ps->map->origin_x; - ps->map->player_y = ps->map->origin_y; + if (sscanf(line, "rows|%u", &ctx->map->rows) != 1 || ctx->map->rows == 0) + return errorf("null map rows"); return true; } static bool -parse_tiledefs(struct parser *ps, const char *line) +parse_origin(struct context *ctx, const char *line) { - (void)line; - - short x, y; - unsigned short id, w, h; - struct map_tiledef *tiledefs = NULL; - size_t tiledefsz = 0; - - while (fscanf(ps->fp, "%hu|%hd|%hd|%hu|%hu\n", &id, &x, &y, &w, &h) == 5) { - tiledefs = allocator.realloc(tiledefs, ++tiledefsz * sizeof (*tiledefs)); - tiledefs[tiledefsz - 1].id = id; - tiledefs[tiledefsz - 1].x = x; - tiledefs[tiledefsz - 1].y = y; - tiledefs[tiledefsz - 1].w = w; - tiledefs[tiledefsz - 1].h = h; - } - - qsort(tiledefs, tiledefsz, sizeof (*tiledefs), tiledef_cmp); - ps->map->tiledefs = ps->mf->tiledefs = tiledefs; - ps->map->tiledefsz = tiledefsz; + if (sscanf(line, "origin|%d|%d", &ctx->map->player_x, &ctx->map->player_y) != 2) + return errorf("invalid origin"); return true; } static bool -parse_line(struct parser *ps, const char *line) +parse_line(struct context *ctx, const char *line) { static const struct { const char *property; - bool (*read)(struct parser *, const char *); + bool (*read)(struct context *, const char *); } props[] = { { "title", parse_title }, - { "width", parse_width }, - { "height", parse_height }, - { "tilewidth", parse_tilewidth }, - { "tileheight", parse_tileheight }, + { "columns", parse_columns }, + { "rows", parse_rows }, { "tileset", parse_tileset }, { "origin", parse_origin }, { "layer", parse_layer }, - { "tiledefs", parse_tiledefs } }; for (size_t i = 0; i < NELEM(props); ++i) if (strncmp(line, props[i].property, strlen(props[i].property)) == 0) - return props[i].read(ps, line); + return props[i].read(ctx, line); return true; } static bool -parse(struct map_file *loader, const char *path, struct map *map, FILE *fp) +parse(struct context *ctx, const char *path) { char line[1024]; - struct parser ps = { - .mf = loader, - .map = map, - .fp = fp - }; + char basedir[PATH_MAX]; - /* - * Even though dirname(3) usually not modify the path as argument it may - * do according to POSIX specification, as such we still need a - * temporary buffer. - */ - snprintf(ps.basedir, sizeof (ps.basedir), "%s", path); - snprintf(ps.basedir, sizeof (ps.basedir), "%s", dirname(ps.basedir)); + snprintf(basedir, sizeof (basedir), "%s", path); + snprintf(ctx->basedir, sizeof (ctx->basedir), "%s", dirname(basedir)); - while (fgets(line, sizeof (line), fp)) { + while (fgets(line, sizeof (line), ctx->fp)) { /* Remove \n if any */ line[strcspn(line, "\n")] = '\0'; - if (!parse_line(&ps, line)) + if (!parse_line(ctx, line)) return false; } @@ -323,33 +235,36 @@ return errorf("missing background layer"); if (!map->layers[1].tiles) return errorf("missing foreground layer"); - if (!sprite_ok(map->tileset)) + if (!tileset_ok(map->tileset)) return errorf("missing tileset"); return true; } bool -map_file_open(struct map_file *file, const char *path, struct map *map) +map_file_open(struct map_file *file, struct map *map, const char *path) { assert(file); assert(path); assert(map); - FILE *fp; + struct context ctx = { + .mf = file, + .map = map, + }; bool ret = true; memset(map, 0, sizeof (*map)); - if (!(fp = fopen(path, "r"))) + if (!(ctx.fp = fopen(path, "r"))) return errorf("%s", strerror(errno)); - if (!(ret = parse(file, path, map, fp)) || !(ret = check(map))) { + if (!(ret = parse(&ctx, path)) || !(ret = check(map))) { map_finish(map); map_file_finish(file); } - fclose(fp); + fclose(ctx.fp); return ret; } @@ -359,7 +274,11 @@ { assert(file); - free(file->tiledefs); - texture_finish(&file->tileset); + free(file->layers[0].tiles); + free(file->layers[1].tiles); + free(file->layers[2].tiles); + + tileset_file_finish(&file->tileset_file); + memset(file, 0, sizeof (*file)); } diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/map-file.h --- a/librpg/rpg/map-file.h Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/rpg/map-file.h Tue Nov 17 20:08:42 2020 +0100 @@ -44,6 +44,8 @@ #include #include "map.h" +#include "tileset.h" +#include "tileset-file.h" /** * \brief Maximum title map length in file. @@ -81,9 +83,15 @@ */ struct map_layer layers[MAP_LAYER_TYPE_NUM]; - struct map_tiledef *tiledefs; /*!< (*) Per tile properties. */ - struct texture tileset; /*!< (*) Tileset image. */ - struct sprite sprite; /*!< (*) Tileset sprite. */ + /** + * (*) Tileset file loader. + */ + struct tileset_file tileset_file; + + /** + * (*) Tileset referenced from the map. + */ + struct tileset tileset; }; /** @@ -93,12 +101,12 @@ * \pre path != NULL * \pre map != NULL * \param file the loader to use + * \param map the map to set * \param path the path to the map file - * \param map the map to set * \warning Keep file object until map is no longer used. */ bool -map_file_open(struct map_file *file, const char *path, struct map *map) PLAT_NODISCARD; +map_file_open(struct map_file *file, struct map *map, const char *path) PLAT_NODISCARD; /** * Close resources from the loader. diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/map.c --- a/librpg/rpg/map.c Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/rpg/map.c Tue Nov 17 20:08:42 2020 +0100 @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -35,6 +34,7 @@ #include #include "map.h" +#include "tileset.h" /* * This is the speed the player moves on the map. @@ -52,6 +52,9 @@ #define MARGIN_WIDTH 80 #define MARGIN_HEIGHT 80 +#define WIDTH(map) ((map)->columns * (map)->tileset->sprite->cellw) +#define HEIGHT(map) ((map)->rows * (map)->tileset->sprite->cellh) + /* * This structure defines the possible movement of the player as flags since * it's possible to make diagonal movements. @@ -130,20 +133,18 @@ if (map->view_x < 0) map->view_x = 0; - else if ((unsigned int)map->view_x > map->real_w - map->view_w) - map->view_x = map->real_w - map->view_w; + else if ((unsigned int)map->view_x > WIDTH(map) - map->view_w) + map->view_x = WIDTH(map) - map->view_w; if (map->view_y < 0) map->view_y = 0; - else if ((unsigned int)map->view_y > map->real_h - map->view_h) - map->view_y = map->real_h - map->view_h; + else if ((unsigned int)map->view_y > HEIGHT(map) - map->view_h) + map->view_y = HEIGHT(map) - map->view_h; } static void init(struct map *map) { - map_repaint(map); - /* Adjust view. */ map->view_w = window.w; map->view_h = window.h; @@ -188,7 +189,6 @@ switch (event->key.key) { case KEY_TAB: map->flags ^= MAP_FLAGS_SHOW_GRID | MAP_FLAGS_SHOW_COLLIDE; - map_repaint(map); break; case KEY_UP: map->player_movement &= ~(MOVING_UP); @@ -208,7 +208,7 @@ } static int -cmp_tile(const struct map_tiledef *td1, const struct map_tiledef *td2) +cmp_tile(const struct tileset_tiledef *td1, const struct tileset_tiledef *td2) { if (td1->id < td2->id) return -1; @@ -218,19 +218,20 @@ return 0; } -static struct map_tiledef * +static struct tileset_tiledef * find_tiledef_by_id(const struct map *map, unsigned short id) { typedef int (*cmp)(const void *, const void *); - const struct map_tiledef key = { + const struct tileset_tiledef key = { .id = id }; - return bsearch(&key, map->tiledefs, map->tiledefsz, sizeof (key), (cmp)cmp_tile); + return bsearch(&key, map->tileset->tiledefs, map->tileset->tiledefsz, + sizeof (key), (cmp)cmp_tile); } -static struct map_tiledef * +static struct tileset_tiledef * find_tiledef_by_row_column_in_layer(const struct map *map, const struct map_layer *layer, int row, @@ -238,20 +239,20 @@ { unsigned short id; - if (row < 0 || (unsigned int)row >= map->h || - col < 0 || (unsigned int)col >= map->w) + if (row < 0 || (unsigned int)row >= map->rows || + col < 0 || (unsigned int)col >= map->columns) return false; - if ((id = layer->tiles[col + row * map->w]) == 0) + if ((id = layer->tiles[col + row * map->columns]) == 0) return NULL; return find_tiledef_by_id(map, id - 1); } -static struct map_tiledef * +static struct tileset_tiledef * find_tiledef_by_row_column(const struct map *map, int row, int col) { - struct map_tiledef *tile; + struct tileset_tiledef *tile; /* TODO: probably a for loop when we have indefinite layers. */ if (!(tile = find_tiledef_by_row_column_in_layer(map, &map->layers[1], row, col))) @@ -275,15 +276,15 @@ for (int r = rowstart; r <= rowend; ++r) { for (int c = colstart; c <= colend; ++c) { - struct map_tiledef *td; + struct tileset_tiledef *td; struct collision tmp; if (!(td = find_tiledef_by_row_column(map, r, c))) continue; /* Convert to absolute values. */ - tmp.x = td->x + c * map->tileset->cellw; - tmp.y = td->y + r * map->tileset->cellh; + tmp.x = td->x + c * map->tileset->sprite->cellw; + tmp.y = td->y + r * map->tileset->sprite->cellh; tmp.w = td->w; tmp.h = td->h; @@ -309,10 +310,10 @@ { assert((drow && !dcolumn) || (dcolumn && !drow)); - const int playercol = map->player_x / map->tileset->cellw; - const int playerrow = map->player_y / map->tileset->cellh; - const int ncols = map->player_sprite->cellw / map->tileset->cellw; - const int nrows = map->player_sprite->cellh / map->tileset->cellh; + const int playercol = map->player_x / map->tileset->sprite->cellw; + const int playerrow = map->player_y / map->tileset->sprite->cellh; + const int ncols = map->player_sprite->cellw / map->tileset->sprite->cellw; + const int nrows = map->player_sprite->cellh / map->tileset->sprite->cellh; int rowstart, rowend, colstart, colend; if (drow) { @@ -324,14 +325,14 @@ rowstart = 0; rowend = playerrow; block->x = block->y = block->h = 0; - block->w = map->real_w; + block->w = WIDTH(map); } else { /* Moving DOWN. */ rowstart = playerrow + nrows; - rowend = map->h; + rowend = HEIGHT(map); block->x = block->h = 0; - block->y = map->real_h; - block->w = map->real_w; + block->y = HEIGHT(map); + block->w = WIDTH(map); } } else { rowstart = playerrow; @@ -342,12 +343,12 @@ colstart = 0; colend = playercol; block->x = block->y = block->w = 0; - block->h = map->real_h; + block->h = HEIGHT(map); } else { /* Moving RIGHT. */ colstart = playercol + ncols; - colend = map->w; - block->x = map->real_w; + colend = WIDTH(map); + block->x = WIDTH(map); block->y = block->w = 0; block->h = block->h; } @@ -376,8 +377,8 @@ if (map->view_x < 0) map->view_x = 0; - else if (map->view_x >= (int)(map->real_w - map->view_w)) - map->view_x = map->real_w - map->view_w; + else if (map->view_x >= (int)(WIDTH(map) - map->view_w)) + map->view_x = WIDTH(map) - map->view_w; } static void @@ -400,8 +401,8 @@ if (map->view_y < 0) map->view_y = 0; - else if (map->view_y >= (int)(map->real_h - map->view_h)) - map->view_y = map->real_h - map->view_h; + else if (map->view_y >= (int)(HEIGHT(map) - map->view_h)) + map->view_y = HEIGHT(map) - map->view_h; } static void @@ -438,14 +439,71 @@ walksprite_update(&map->player_ws, ticks); } +static inline void +draw_layer_tile(const struct map *map, + const struct map_layer *layer, + struct texture *colbox, + int start_col, + int start_row, + int start_x, + int start_y, + unsigned int r, + unsigned int c) +{ + const struct tileset_tiledef *td; + int index, id, sc, sr, mx, my; + + index = (start_col + c) + ((start_row + r) * map->columns); + + if ((id = layer->tiles[index]) == 0) + return; + + id -= 1; + + /* Sprite row/column. */ + sc = (id) % map->tileset->sprite->ncols; + sr = (id) / map->tileset->sprite->ncols; + + /* On screen coordinates. */ + mx = start_x + (int)c * (int)map->tileset->sprite->cellw; + my = start_y + (int)r * (int)map->tileset->sprite->cellh; + + tileset_draw(map->tileset, sr, sc, mx, my); + + if ((td = find_tiledef_by_id(map, id)) && texture_ok(colbox)) + texture_scale(colbox, 0, 0, 5, 5, mx + td->x, my + td->y, td->w, td->h, 0); + + if (map->flags & MAP_FLAGS_SHOW_GRID) { + painter_set_color(0x202e37ff); + painter_draw_line(mx, my, mx + (int)map->tileset->sprite->cellw, my); + painter_draw_line( + mx + (int)map->tileset->sprite->cellw - 1, my, + mx + (int)map->tileset->sprite->cellw - 1, my + (int)map->tileset->sprite->cellh); + } +} + static void -draw_layer(struct map *map, const struct map_layer *layer) +draw_layer(const struct map *map, const struct map_layer *layer) { assert(map); assert(layer); + /* Beginning of view in row/column. */ + const unsigned int start_col = map->view_x / map->tileset->sprite->cellw; + const unsigned int start_row = map->view_y / map->tileset->sprite->cellh; + + /* Convert into x/y coordinate. */ + const int start_x = 0 - (map->view_x % (int)map->tileset->sprite->cellw); + const int start_y = 0 - (map->view_y % (int)map->tileset->sprite->cellh); + + /* Number of row/columns to draw starting from there. */ + const unsigned int ncols = (map->view_w / map->tileset->sprite->cellw) + 2; + const unsigned int nrows = (map->view_h / map->tileset->sprite->cellh) + 2; + struct texture colbox = {0}; - const size_t ntiles = map->w * map->h; + + if (!layer->tiles) + return; /* Show collision box if requested. */ if (map->flags & MAP_FLAGS_SHOW_COLLIDE && texture_new(&colbox, 16, 16)) { @@ -457,36 +515,13 @@ PAINTER_END(); } - for (size_t i = 0; i < ntiles; ++i) { - const struct map_tiledef *td; - int mx, my, mr, mc, sr, sc, id; - - if (layer->tiles[i] == 0) - continue; - - id = layer->tiles[i] - 1; - - /* Map row/column. */ - mc = i % map->w; - mr = i / map->w; + for (unsigned int r = 0; r < nrows; ++r) { + for (unsigned int c = 0; c < ncols; ++c) { + if (start_col + c >= map->columns || + start_row + r >= map->rows) + continue; - /* Map row/column real positions. */ - mx = mc * map->tileset->cellw; - my = mr * map->tileset->cellh; - - /* Sprite row/column. */ - sc = (id) % map->tileset->ncols; - sr = (id) / map->tileset->ncols; - - sprite_draw(map->tileset, sr, sc, mx, my); - - if ((td = find_tiledef_by_id(map, id)) && texture_ok(&colbox)) - texture_scale(&colbox, 0, 0, 5, 5, mx + td->x, my + td->y, td->w, td->h, 0); - - if (map->flags & MAP_FLAGS_SHOW_GRID) { - painter_set_color(0x202e37ff); - painter_draw_line(mx, my, mx + map->tileset->cellw, my); - painter_draw_line(mx + map->tileset->cellw - 1, my, mx + map->tileset->cellw - 1, my + map->tileset->cellh); + draw_layer_tile(map, layer, &colbox, start_col, start_row, start_x, start_y, r, c); } } @@ -498,9 +533,6 @@ { assert(map); - if (!texture_new(&map->picture, map->real_w, map->real_h)) - return false; - init(map); return true; @@ -542,8 +574,8 @@ struct texture box = {0}; /* Draw the texture about background/foreground. */ - texture_scale(&map->picture, map->view_x, map->view_y, window.w, window.h, - 0, 0, window.w, window.h, 0.0); + draw_layer(map, &map->layers[MAP_LAYER_TYPE_BACKGROUND]); + draw_layer(map, &map->layers[MAP_LAYER_TYPE_FOREGROUND]); walksprite_draw( &map->player_ws, @@ -551,6 +583,8 @@ map->player_x - map->view_x, map->player_y - map->view_y); + draw_layer(map, &map->layers[MAP_LAYER_TYPE_ABOVE]); + action_stack_draw(&map->actions); /* Draw collide box around player if requested. */ @@ -568,23 +602,11 @@ } void -map_repaint(struct map *map) -{ - assert(map); - - PAINTER_BEGIN(&map->picture); - draw_layer(map, &map->layers[MAP_LAYER_TYPE_BACKGROUND]); - draw_layer(map, &map->layers[MAP_LAYER_TYPE_FOREGROUND]); - PAINTER_END(); -} - -void map_finish(struct map *map) { assert(map); action_stack_finish(&map->actions); - texture_finish(&map->picture); memset(map, 0, sizeof (*map)); } diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/map.h --- a/librpg/rpg/map.h Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/rpg/map.h Tue Nov 17 20:08:42 2020 +0100 @@ -27,12 +27,10 @@ #include #include -#include #include "walksprite.h" -struct sprite; -struct state; +struct tileset; union event; @@ -47,17 +45,6 @@ }; /** - * \brief Describe a tile in a tileset. - */ -struct map_tiledef { - short id; /*!< (*) Tile index. */ - short x; /*!< (*) Collision region starts in y. */ - short y; /*!< (*) Collision region starts in y. */ - unsigned short w; /*!< (*) Collision width. */ - unsigned short h; /*!< (*) Collision height. */ -}; - -/** * \brief Map layer. */ struct map_layer { @@ -81,22 +68,16 @@ */ struct map { const char *title; /*!< (+) Map title name. */ - int origin_x; /*!< (+) Where the player starts in X. */ - int origin_y; /*!< (+) Where the player starts in Y. */ - unsigned int real_w; /*!< (-) Real width in pixels. */ - unsigned int real_h; /*!< (-) Real height in pixels. */ - unsigned int w; /*!< (-) Map width in cells. */ - unsigned int h; /*!< (-) Map height in cells. */ - unsigned short tile_w; /*!< (-) Pixels per cell (width). */ - unsigned short tile_h; /*!< (-) Pixels per cell (height). */ - struct sprite *tileset; /*!< (+&) Tileset to use. */ - struct texture picture; /*!< (-) Map drawn into a texture. */ - struct map_tiledef *tiledefs; /*!< (+&?) Per tile properties (must be sorted by id). */ - size_t tiledefsz; /*!< (+) Number of tile properties. */ + unsigned int columns; /*!< (-) Number of columns. */ + unsigned int rows; /*!< (-) Number of rows. */ + + /* Tileset. */ + struct tileset *tileset; /*!< (+&?) Tileset to use. */ /* View options. */ enum map_flags flags; /*!< (+) View options. */ + /* List of actions. */ struct action_stack actions; /*!< (+) */ /* Player. */ @@ -168,16 +149,6 @@ map_draw(const struct map *map); /** - * Force map repaint on its texture. - * - * \pre map != NULL - * \param map the map to repaint - * \warning This function does not render anything on the screen. - */ -void -map_repaint(struct map *map); - -/** * Dispose map resources. * * \pre map != NULL diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/message.h --- a/librpg/rpg/message.h Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/rpg/message.h Tue Nov 17 20:08:42 2020 +0100 @@ -211,11 +211,15 @@ * Convert message into an action. * * \pre msg != NULL - * \pre action != NULL + * \pre act != NULL * \param msg the message to reference - * \param action the action to fill + * \param act the action to fill + * \post act->data contains msg + * \post act->handle invokes message_handle + * \post act->update invokes message_update + * \post act->draw invokes message_draw */ void -message_action(struct message *msg, struct action *action); +message_action(struct message *msg, struct action *act); #endif /* !MOLKO_MESSAGE_H */ diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/teleport.h --- a/librpg/rpg/teleport.h Mon Nov 16 21:57:23 2020 +0100 +++ b/librpg/rpg/teleport.h Tue Nov 17 20:08:42 2020 +0100 @@ -32,25 +32,73 @@ struct map; struct state; +/** + * \brief Animate screen and teleport. + * + * This structure should be used as an action to block the current state input, + * draw a fading effect and finally change the game state. + */ struct teleport { - struct state *state; - unsigned int elapsed; - unsigned int alpha; + struct state *state; /*!< (+&) Next state to use. */ + unsigned int elapsed; /*!< (-) Elapsed time since last frame. */ + unsigned int alpha; /*!< (-) Current alpha */ struct texture fade; }; +/** + * Start the teleport effect. + * + * This function will inhibit the current state input to avoid user interaction + * while the effect is running. + * + * \pre tp != NULL + * \param tp the teleport to start + */ void teleport_start(struct teleport *tp); +/** + * Update the transition. + * + * \pre tp != NULL + * \param tp the teleport effect + * \param ticks the elapsed time since last frame + * \return True if completed. + */ bool teleport_update(struct teleport *tp, unsigned int ticks); +/** + * Draw the transition effect. + * + * \pre tp != NULL + * \param tp the teleport effect + */ void teleport_draw(struct teleport *tp); +/** + * Cleanup the teleport effect. + * + * \pre tp != NULL + * \param tp the teleport effect to clear + */ void teleport_finish(struct teleport *tp); +/** + * Transform the teleport effect into an action. This function will also call + * teleport_start. + * + * \pre tp != NULL && tp->state != NULL + * \pre act != NULL + * \param tp the teleport object + * \param act the action to fill + * \post act->data contains tp + * \post act->update will invoke teleport_update + * \post act->draw will invoke teleport_draw + * \post act->finish will invoke teleport_finish + */ void teleport_action(struct teleport *tp, struct action *act); diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/tileset-file.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/librpg/rpg/tileset-file.c Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,216 @@ +/* + * tileset-file.c -- tileset file loader + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#define _XOPEN_SOURCE 700 +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include "tileset-file.h" +#include "tileset.h" + +#define MAX_F(v) MAX_F_(v) +#define MAX_F_(v) "%" #v "c" + +struct context { + struct tileset_file *tf; + struct tileset *tileset; + FILE *fp; + + char basedir[PATH_MAX]; + + /* + * The following properties aren't stored in the tileset because they + * are not needed after loading. + */ + unsigned int tilewidth; + unsigned int tileheight; +}; + +static int +tiledef_cmp(const void *d1, const void *d2) +{ + const struct tileset_tiledef *mtd1 = d1; + const struct tileset_tiledef *mtd2 = d2; + + if (mtd1->id < mtd2->id) + return -1; + if (mtd1->id > mtd2->id) + return 1; + + return 0; +} + +static bool +parse_tilewidth(struct context *ctx, const char *line) +{ + if (sscanf(line, "tilewidth|%u", &ctx->tilewidth) != 1 || ctx->tilewidth == 0) + return errorf("tilewidth is null"); + + return true; +} + +static bool +parse_tileheight(struct context *ctx, const char *line) +{ + if (sscanf(line, "tileheight|%u", &ctx->tileheight) != 1 || ctx->tileheight == 0) + return errorf("tileheight is null"); + + return true; +} + +static bool +parse_tiledefs(struct context *ctx, const char *line) +{ + (void)line; + + short x, y; + unsigned short id, w, h; + struct tileset_tiledef *tiledefs = NULL; + size_t tiledefsz = 0; + + while (fscanf(ctx->fp, "%hu|%hd|%hd|%hu|%hu\n", &id, &x, &y, &w, &h) == 5) { + tiledefs = allocator.realloc(tiledefs, ++tiledefsz * sizeof (*tiledefs)); + tiledefs[tiledefsz - 1].id = id; + tiledefs[tiledefsz - 1].x = x; + tiledefs[tiledefsz - 1].y = y; + tiledefs[tiledefsz - 1].w = w; + tiledefs[tiledefsz - 1].h = h; + } + + qsort(tiledefs, tiledefsz, sizeof (*tiledefs), tiledef_cmp); + ctx->tileset->tiledefs = ctx->tf->tiledefs = tiledefs; + ctx->tileset->tiledefsz = tiledefsz; + + return true; +} + +static bool +parse_image(struct context *ctx, const char *line) +{ + char path[PATH_MAX], *p; + + if (ctx->tilewidth == 0 || ctx->tileheight == 0) + return errorf("missing tile dimensions before image"); + if (!(p = strchr(line, '|'))) + return errorf("could not parse image"); + + snprintf(path, sizeof (path), "%s/%s", ctx->basedir, p + 1); + + if (!image_open(&ctx->tf->image, path)) + return false; + + sprite_init(&ctx->tf->sprite, &ctx->tf->image, ctx->tilewidth, ctx->tileheight); + ctx->tileset->sprite = &ctx->tf->sprite; + + return true; +} + +static bool +parse_line(struct context *ctx, const char *line) +{ + static const struct { + const char *property; + bool (*read)(struct context *, const char *); + } props[] = { + { "tilewidth", parse_tilewidth }, + { "tileheight", parse_tileheight }, + { "tiledefs", parse_tiledefs }, + { "image", parse_image } + }; + + for (size_t i = 0; i < NELEM(props); ++i) { + if (strncmp(line, props[i].property, strlen(props[i].property)) == 0) + return props[i].read(ctx, line); + } + + return true; +} + +static bool +parse(struct context *ctx, const char *path) +{ + char line[1024]; + char basedir[PATH_MAX]; + + snprintf(basedir, sizeof (basedir), "%s", path); + snprintf(ctx->basedir, sizeof (ctx->basedir), "%s", dirname(basedir)); + + while (fgets(line, sizeof (line), ctx->fp)) { + /* Remove \n if any */ + line[strcspn(line, "\n")] = '\0'; + + if (!parse_line(ctx, line)) + return false; + } + + return true; +} + +static bool +check(const struct tileset *tileset) +{ + if (!tileset->sprite) + return errorf("missing tileset image"); + + return true; +} + +bool +tileset_file_open(struct tileset_file *tf, struct tileset *tileset, const char *path) +{ + assert(tf); + assert(tileset); + assert(path); + + struct context ctx = { + .tf = tf, + .tileset = tileset + }; + bool ret = true; + + memset(tileset, 0, sizeof (*tileset)); + + if (!(ctx.fp = fopen(path, "r"))) + return errorf("%s", strerror(errno)); + if (!(ret = parse(&ctx, path)) || !(ret = check(tileset))) + tileset_file_finish(tf); + + return ret; +} + +void +tileset_file_finish(struct tileset_file *tf) +{ + assert(tf); + + texture_finish(&tf->image); + + free(tf->tiledefs); + memset(tf, 0, sizeof (*tf)); +} diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/tileset-file.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/librpg/rpg/tileset-file.h Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,43 @@ +/* + * tileset-file.h -- tileset file loader + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef MOLKO_RPG_TILESET_FILE_H +#define MOLKO_RPG_TILESET_FILE_H + +#include + +#include +#include +#include + +struct tileset; +struct tileset_tiledef; + +struct tileset_file { + struct tileset_tiledef *tiledefs; /*!< (*) Owned tile definitions. */ + struct texture image; /*!< (*) Owned image file. */ + struct sprite sprite; /*!< (*) Owned sprite. */ +}; + +bool +tileset_file_open(struct tileset_file *tf, struct tileset *tileset, const char *path) PLAT_NODISCARD; + +void +tileset_file_finish(struct tileset_file *tf); + +#endif /* !MOLKO_RPG_TILESET_FILE_H */ diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/tileset.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/librpg/rpg/tileset.c Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,37 @@ +/* + * tileset.c -- map tileset definition + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include + +#include + +#include "tileset.h" + +bool +tileset_ok(const struct tileset *ts) +{ + return ts && sprite_ok(ts->sprite); +} + +void +tileset_draw(const struct tileset *ts, unsigned int r, unsigned int c, int x, int y) +{ + assert(ts); + + sprite_draw(ts->sprite, r, c, x, y); +} diff -r 82fd79d5019e -r 64f24b482722 librpg/rpg/tileset.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/librpg/rpg/tileset.h Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,55 @@ +/* + * tileset.h -- map tileset definition + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef MOLKO_RPG_TILESET_H +#define MOLKO_RPG_TILESET_H + +#include +#include + +struct sprite; + +/** + * \brief Describe a tile property in a tileset. + * + * It can contains an animation and a collision mask. + */ +struct tileset_tiledef { + short id; /*!< (+) Tile index. */ + short x; /*!< (+) Collision region starts in y. */ + short y; /*!< (+) Collision region starts in y. */ + unsigned short w; /*!< (+) Collision width. */ + unsigned short h; /*!< (+) Collision height. */ +}; + +/** + * \brief Tileset definition. + */ +struct tileset { + struct tileset_tiledef *tiledefs; /*!< (+&?) Per tile properties (must be sorted by id). */ + size_t tiledefsz; /*!< (+) Number of tile properties. */ + struct sprite *sprite; /*!< (+&) Sprite to generate the terrain. */ +}; + +bool +tileset_ok(const struct tileset *ts); + +void +tileset_draw(const struct tileset *ts, unsigned int r, unsigned int c, int x, int y); + +#endif /* !MOLKO_RPG_TILESET_H */ diff -r 82fd79d5019e -r 64f24b482722 tests/CMakeLists.txt --- a/tests/CMakeLists.txt Mon Nov 16 21:57:23 2020 +0100 +++ b/tests/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -22,11 +22,19 @@ molko_define_test(TARGET action-script SOURCES test-action-script.c) molko_define_test(TARGET color SOURCES test-color.c) molko_define_test(TARGET error SOURCES test-error.c) + molko_define_test( TARGET map SOURCES test-map.c FLAGS DIRECTORY="${tests_SOURCE_DIR}/assets/maps/" ) + molko_define_test(TARGET save SOURCES test-save.c) molko_define_test(TARGET state SOURCES test-state.c) molko_define_test(TARGET drawable SOURCES test-drawable.c) + +molko_define_test( + TARGET tileset + SOURCES test-tileset.c + FLAGS DIRECTORY="${tests_SOURCE_DIR}/assets/maps/" +) diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-columns.map --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/assets/maps/error-columns.map Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,13 @@ +title|This map lacks width +rows|2 +tileset|sample-tileset.tileset +layer|background +0 +1 +2 +3 +layer|foreground +4 +5 +6 +7 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-height.map --- a/tests/assets/maps/error-height.map Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -title|This map lacks height -width|2 -tilewidth|32 -tileheight|16 -tileset|sample-map.png -layer|background -0 -1 -2 -3 -layer|foreground -4 -5 -6 -7 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-image.tileset --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/assets/maps/error-image.tileset Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,7 @@ +tilewidth|64 +tileheight|32 +tiledefs +129|8|0|56|40 +130|0|0|62|40 +132|0|0|64|40 +133|0|0|58|40 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-rows.map --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/assets/maps/error-rows.map Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,13 @@ +title|This map lacks height +columns|2 +tileset|sample-tileset.tileset +layer|background +0 +1 +2 +3 +layer|foreground +4 +5 +6 +7 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-tileheight.map --- a/tests/assets/maps/error-tileheight.map Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -title|This map lacks tileheight -width|2 -height|2 -tilewidth|32 -tileset|sample-map.png -layer|background -0 -1 -2 -3 -layer|foreground -4 -5 -6 -7 - diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-tileheight.tileset --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/assets/maps/error-tileheight.tileset Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,7 @@ +tilewidth|64 +image|sample-tileset.png +tiledefs +129|8|0|56|40 +130|0|0|62|40 +132|0|0|64|40 +133|0|0|58|40 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-tilewidth.map --- a/tests/assets/maps/error-tilewidth.map Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -title|This map lacks tilewidth -width|2 -height|2 -tileheight|16 -tileset|sample-map.png -layer|background -0 -1 -2 -3 -layer|foreground -4 -5 -6 -7 - diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-tilewidth.tileset --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/assets/maps/error-tilewidth.tileset Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,7 @@ +tileheight|32 +image|sample-tileset.png +tiledefs +129|8|0|56|40 +130|0|0|62|40 +132|0|0|64|40 +133|0|0|58|40 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-title.map --- a/tests/assets/maps/error-title.map Mon Nov 16 21:57:23 2020 +0100 +++ b/tests/assets/maps/error-title.map Tue Nov 17 20:08:42 2020 +0100 @@ -1,8 +1,6 @@ +columns|2 width|2 -height|2 -tilewidth|32 -tileheight|16 -tileset|sample-map.png +tileset|sample-tileset.tileset layer|background 0 1 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/error-width.map --- a/tests/assets/maps/error-width.map Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -title|This map lacks width -height|2 -tilewidth|32 -tileheight|16 -tileset|sample-map.png -layer|background -0 -1 -2 -3 -layer|foreground -4 -5 -6 -7 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/sample-map.map --- a/tests/assets/maps/sample-map.map Mon Nov 16 21:57:23 2020 +0100 +++ b/tests/assets/maps/sample-map.map Tue Nov 17 20:08:42 2020 +0100 @@ -1,19 +1,22 @@ title|This is a test map -width|2 -height|2 -tilewidth|32 -tileheight|16 -tileset|sample-map.png +columns|4 +rows|2 +tileset|sample-tileset.tileset layer|background 0 1 2 3 -layer|foreground 4 5 6 7 -tiles -2|12|14|8|10 -0|10|12|5|7 +layer|foreground +8 +9 +10 +11 +12 +13 +14 +15 diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/sample-map.png Binary file tests/assets/maps/sample-map.png has changed diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/sample-tileset.png Binary file tests/assets/maps/sample-tileset.png has changed diff -r 82fd79d5019e -r 64f24b482722 tests/assets/maps/sample-tileset.tileset --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/assets/maps/sample-tileset.tileset Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,8 @@ +tilewidth|64 +tileheight|32 +image|sample-tileset.png +tiledefs +129|8|0|56|40 +130|0|0|62|40 +132|0|0|64|40 +133|0|0|58|40 diff -r 82fd79d5019e -r 64f24b482722 tests/test-map.c --- a/tests/test-map.c Mon Nov 16 21:57:23 2020 +0100 +++ b/tests/test-map.c Tue Nov 17 20:08:42 2020 +0100 @@ -29,36 +29,62 @@ #include GREATEST_TEST -test_sample(void) +test_basics_sample(void) { struct map_file loader = {0}; struct map map = {0}; - GREATEST_ASSERT(map_file_open(&loader, DIRECTORY "sample-map.map", &map)); + GREATEST_ASSERT(map_file_open(&loader, &map, DIRECTORY "sample-map.map")); GREATEST_ASSERT_STR_EQ("This is a test map", map.title); - GREATEST_ASSERT_EQ(2, map.w); - GREATEST_ASSERT_EQ(2, map.h); - GREATEST_ASSERT_EQ(32, map.tile_w); - GREATEST_ASSERT_EQ(16, map.tile_h); + GREATEST_ASSERT_EQ(4, map.columns); + GREATEST_ASSERT_EQ(2, map.rows); + GREATEST_ASSERT_EQ(0, map.layers[0].tiles[0]); GREATEST_ASSERT_EQ(1, map.layers[0].tiles[1]); GREATEST_ASSERT_EQ(2, map.layers[0].tiles[2]); GREATEST_ASSERT_EQ(3, map.layers[0].tiles[3]); - GREATEST_ASSERT_EQ(4, map.layers[1].tiles[0]); - GREATEST_ASSERT_EQ(5, map.layers[1].tiles[1]); - GREATEST_ASSERT_EQ(6, map.layers[1].tiles[2]); - GREATEST_ASSERT_EQ(7, map.layers[1].tiles[3]); - GREATEST_ASSERT_EQ(2, map.tiledefsz); - GREATEST_ASSERT_EQ(0, map.tiledefs[0].id); - GREATEST_ASSERT_EQ(10, map.tiledefs[0].x); - GREATEST_ASSERT_EQ(12, map.tiledefs[0].y); - GREATEST_ASSERT_EQ(5, map.tiledefs[0].w); - GREATEST_ASSERT_EQ(7, map.tiledefs[0].h); - GREATEST_ASSERT_EQ(2, map.tiledefs[1].id); - GREATEST_ASSERT_EQ(12, map.tiledefs[1].x); - GREATEST_ASSERT_EQ(14, map.tiledefs[1].y); - GREATEST_ASSERT_EQ(8, map.tiledefs[1].w); - GREATEST_ASSERT_EQ(10, map.tiledefs[1].h); + GREATEST_ASSERT_EQ(4, map.layers[0].tiles[4]); + GREATEST_ASSERT_EQ(5, map.layers[0].tiles[5]); + GREATEST_ASSERT_EQ(6, map.layers[0].tiles[6]); + GREATEST_ASSERT_EQ(7, map.layers[0].tiles[7]); + + GREATEST_ASSERT_EQ(8, map.layers[1].tiles[0]); + GREATEST_ASSERT_EQ(9, map.layers[1].tiles[1]); + GREATEST_ASSERT_EQ(10, map.layers[1].tiles[2]); + GREATEST_ASSERT_EQ(11, map.layers[1].tiles[3]); + GREATEST_ASSERT_EQ(12, map.layers[1].tiles[4]); + GREATEST_ASSERT_EQ(13, map.layers[1].tiles[5]); + GREATEST_ASSERT_EQ(14, map.layers[1].tiles[6]); + GREATEST_ASSERT_EQ(15, map.layers[1].tiles[7]); + + GREATEST_ASSERT_EQ(64U, map.tileset->sprite->cellw); + GREATEST_ASSERT_EQ(32U, map.tileset->sprite->cellh); + + GREATEST_ASSERT_EQ(4, map.tileset->tiledefsz); + + GREATEST_ASSERT_EQ(129, map.tileset->tiledefs[0].id); + GREATEST_ASSERT_EQ(8, map.tileset->tiledefs[0].x); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[0].y); + GREATEST_ASSERT_EQ(56, map.tileset->tiledefs[0].w); + GREATEST_ASSERT_EQ(40, map.tileset->tiledefs[0].h); + + GREATEST_ASSERT_EQ(130, map.tileset->tiledefs[1].id); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[1].x); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[1].y); + GREATEST_ASSERT_EQ(62, map.tileset->tiledefs[1].w); + GREATEST_ASSERT_EQ(40, map.tileset->tiledefs[1].h); + + GREATEST_ASSERT_EQ(132, map.tileset->tiledefs[2].id); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[2].x); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[2].y); + GREATEST_ASSERT_EQ(64, map.tileset->tiledefs[2].w); + GREATEST_ASSERT_EQ(40, map.tileset->tiledefs[2].h); + + GREATEST_ASSERT_EQ(133, map.tileset->tiledefs[3].id); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[3].x); + GREATEST_ASSERT_EQ(0, map.tileset->tiledefs[3].y); + GREATEST_ASSERT_EQ(58, map.tileset->tiledefs[3].w); + GREATEST_ASSERT_EQ(40, map.tileset->tiledefs[3].h); map_finish(&map); map_file_finish(&loader); @@ -72,7 +98,7 @@ struct map_file loader = {0}; struct map map = {0}; - GREATEST_ASSERT(!map_file_open(&loader, DIRECTORY "error-title.map", &map)); + GREATEST_ASSERT(!map_file_open(&loader, &map, DIRECTORY "error-title.map")); map_finish(&map); map_file_finish(&loader); @@ -81,26 +107,12 @@ } GREATEST_TEST -test_error_width(void) +test_error_columns(void) { struct map_file loader = {0}; struct map map = {0}; - GREATEST_ASSERT(!map_file_open(&loader, DIRECTORY "error-width.map", &map)); - - map_finish(&map); - map_file_finish(&loader); - - GREATEST_PASS(); -} - -GREATEST_TEST -test_error_height(void) -{ - struct map_file loader = {0}; - struct map map = {0}; - - GREATEST_ASSERT(!map_file_open(&loader, DIRECTORY "error-height.map", &map)); + GREATEST_ASSERT(!map_file_open(&loader, &map, DIRECTORY "error-columns.map")); map_finish(&map); map_file_finish(&loader); @@ -109,12 +121,12 @@ } GREATEST_TEST -test_error_tilewidth(void) +test_error_rows(void) { struct map_file loader = {0}; struct map map = {0}; - GREATEST_ASSERT(!map_file_open(&loader, DIRECTORY "error-tilewidth.map", &map)); + GREATEST_ASSERT(!map_file_open(&loader, &map, DIRECTORY "error-rows.map")); map_finish(&map); map_file_finish(&loader); @@ -122,32 +134,16 @@ GREATEST_PASS(); } -GREATEST_TEST -test_error_tileheight(void) +GREATEST_SUITE(suite_basics) { - struct map_file loader = {0}; - struct map map = {0}; - - GREATEST_ASSERT(!map_file_open(&loader, DIRECTORY "error-tileheight.map", &map)); - - map_finish(&map); - map_file_finish(&loader); - - GREATEST_PASS(); + GREATEST_RUN_TEST(test_basics_sample); } -GREATEST_SUITE(basics) -{ - GREATEST_RUN_TEST(test_sample); -} - -GREATEST_SUITE(errors) +GREATEST_SUITE(suite_errors) { GREATEST_RUN_TEST(test_error_title); - GREATEST_RUN_TEST(test_error_width); - GREATEST_RUN_TEST(test_error_height); - GREATEST_RUN_TEST(test_error_tilewidth); - GREATEST_RUN_TEST(test_error_tileheight); + GREATEST_RUN_TEST(test_error_columns); + GREATEST_RUN_TEST(test_error_rows); } GREATEST_MAIN_DEFS(); @@ -164,8 +160,8 @@ */ if (core_init() && window_open("test-map", 100, 100)) { - GREATEST_RUN_SUITE(basics); - GREATEST_RUN_SUITE(errors); + GREATEST_RUN_SUITE(suite_basics); + GREATEST_RUN_SUITE(suite_errors); } GREATEST_MAIN_END(); diff -r 82fd79d5019e -r 64f24b482722 tests/test-tileset.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-tileset.c Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,126 @@ +/* + * test-tileset.c -- test tileset loader + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#define GREATEST_USE_ABBREVS 0 +#include + +#include +#include + +#include +#include + +GREATEST_TEST +test_basics_sample(void) +{ + struct tileset_file loader = {0}; + struct tileset tileset; + + GREATEST_ASSERT(tileset_file_open(&loader, &tileset, DIRECTORY "sample-tileset.tileset")); + GREATEST_ASSERT_EQ(64U, tileset.sprite->cellw); + GREATEST_ASSERT_EQ(32U, tileset.sprite->cellh); + + GREATEST_ASSERT_EQ(4, tileset.tiledefsz); + + GREATEST_ASSERT_EQ(129, tileset.tiledefs[0].id); + GREATEST_ASSERT_EQ(8, tileset.tiledefs[0].x); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[0].y); + GREATEST_ASSERT_EQ(56, tileset.tiledefs[0].w); + GREATEST_ASSERT_EQ(40, tileset.tiledefs[0].h); + + GREATEST_ASSERT_EQ(130, tileset.tiledefs[1].id); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[1].x); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[1].y); + GREATEST_ASSERT_EQ(62, tileset.tiledefs[1].w); + GREATEST_ASSERT_EQ(40, tileset.tiledefs[1].h); + + GREATEST_ASSERT_EQ(132, tileset.tiledefs[2].id); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[2].x); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[2].y); + GREATEST_ASSERT_EQ(64, tileset.tiledefs[2].w); + GREATEST_ASSERT_EQ(40, tileset.tiledefs[2].h); + + GREATEST_ASSERT_EQ(133, tileset.tiledefs[3].id); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[3].x); + GREATEST_ASSERT_EQ(0, tileset.tiledefs[3].y); + GREATEST_ASSERT_EQ(58, tileset.tiledefs[3].w); + GREATEST_ASSERT_EQ(40, tileset.tiledefs[3].h); + + tileset_file_finish(&loader); + + GREATEST_PASS(); +} + +GREATEST_SUITE(suite_basics) +{ + GREATEST_RUN_TEST(test_basics_sample); +} + +GREATEST_TEST +test_error_tilewidth(void) +{ + struct tileset_file loader = {0}; + struct tileset tileset = {0}; + + GREATEST_ASSERT(!tileset_file_open(&loader, &tileset, DIRECTORY "error-tilewidth.tileset")); + GREATEST_PASS(); +} + +GREATEST_TEST +test_error_tileheight(void) +{ + struct tileset_file loader = {0}; + struct tileset tileset = {0}; + + GREATEST_ASSERT(!tileset_file_open(&loader, &tileset, DIRECTORY "error-tileheight.tileset")); + GREATEST_PASS(); +} + +GREATEST_TEST +test_error_image(void) +{ + struct tileset_file loader = {0}; + struct tileset tileset = {0}; + + GREATEST_ASSERT(!tileset_file_open(&loader, &tileset, DIRECTORY "error-image.tileset")); + GREATEST_PASS(); +} + +GREATEST_SUITE(suite_errors) +{ + GREATEST_RUN_TEST(test_error_tilewidth); + GREATEST_RUN_TEST(test_error_tileheight); + GREATEST_RUN_TEST(test_error_image); +} + +GREATEST_MAIN_DEFS(); + +int +main(int argc, char **argv) +{ + GREATEST_MAIN_BEGIN(); + + if (core_init() && window_open("test-tileset", 100, 100)) { + GREATEST_RUN_SUITE(suite_basics); + GREATEST_RUN_SUITE(suite_errors); + } + + GREATEST_MAIN_END(); + + return 0; +} diff -r 82fd79d5019e -r 64f24b482722 tools/map/CMakeLists.txt --- a/tools/map/CMakeLists.txt Mon Nov 16 21:57:23 2020 +0100 +++ b/tools/map/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -1,5 +1,5 @@ # -# CMakeLists.txt -- CMake build system for molko-map +# CMakeLists.txt -- CMake build system for mlk-map # # Copyright (c) 2020 David Demelier # @@ -16,11 +16,11 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -project(molko-map) +project(mlk-map) molko_define_executable( - TARGET map - SOURCES map.c + TARGET mlk-map + SOURCES main.c FOLDER tools LIBRARIES Jansson::Jansson ) diff -r 82fd79d5019e -r 64f24b482722 tools/map/main.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/map/main.c Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,291 @@ +/* + * main.c -- convert tiled tiled JSON files into custom files + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#define _XOPEN_SOURCE 700 +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +static void +die(const char *fmt, ...) +{ + assert(fmt); + + va_list ap; + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + exit(1); +} + +static bool +is_layer(const char *name) +{ + return strcmp(name, "background") == 0 || + strcmp(name, "foreground") == 0 || + strcmp(name, "above") == 0 || + strcmp(name, "actions") == 0; +} + +static const json_t * +find_property(const json_t *props, const char *which) +{ + json_t *value; + size_t index; + + json_array_foreach(props, index, value) { + if (!json_is_object(value)) + continue; + + const json_t *key = json_object_get(value, "name"); + + if (json_is_string(key) && strcmp(json_string_value(key), which) == 0) + return value; + } + + return NULL; +} + +static const json_t * +find_action_exec(const json_t *props) +{ + assert(json_is_array(props)); + + json_t *prop, *name, *value; + size_t i; + + json_array_foreach(props, i, prop) { + if (!json_is_object(prop)) + die("invalid property in object\n"); + + name = json_object_get(prop, "name"); + value = json_object_get(prop, "value"); + + if (!name || !json_is_string(name)) + die("invalid 'name' property in object properties"); + if (!value || !json_is_string(value)) + die("invalid 'value' property in object properties"); + + if (strcmp(json_string_value(name), "exec") == 0) + return value; + } + + return NULL; +} + +static void +write_title(const json_t *props) +{ + const json_t *prop_title = find_property(props, "title"); + + if (!prop_title) + return; + + const json_t *title = json_object_get(prop_title, "value"); + + if (title && json_is_string(title)) + printf("title|%s\n", json_string_value(title)); +} + +static void +write_origin(const json_t *props) +{ + const json_t *prop_origin_x = find_property(props, "origin-x"); + const json_t *prop_origin_y = find_property(props, "origin-y"); + + if (!prop_origin_x || !prop_origin_y) + return; + + const json_t *origin_x = json_object_get(prop_origin_x, "value"); + const json_t *origin_y = json_object_get(prop_origin_y, "value"); + + if (!origin_x || !json_is_integer(origin_x) || + !origin_y || !json_is_integer(origin_y)) + return; + + printf("origin|%d|%d\n", + (int)json_integer_value(origin_x), + (int)json_integer_value(origin_y)); +} + +static void +write_properties(const json_t *props) +{ + write_title(props); + write_origin(props); +} + +static void +write_dimensions(const json_t *document) +{ + json_t *width = json_object_get(document, "width"); + json_t *height = json_object_get(document, "height"); + + if (!width || !json_is_integer(width)) + die("missing 'width' property\n"); + if (!height || !json_is_integer(height)) + die("missing 'height' property\n"); + + printf("columns|%d\n", (int)json_integer_value(width)); + printf("rows|%d\n", (int)json_integer_value(height)); +} + +static void +write_object(const json_t *object) +{ + assert(json_is_object(object)); + + json_t *x = json_object_get(object, "x"); + json_t *y = json_object_get(object, "y"); + json_t *width = json_object_get(object, "width"); + json_t *height = json_object_get(object, "height"); + json_t *props = json_object_get(object, "properties"); + const json_t *exec; + + if (!x || !json_is_number(x)) + die("invalid 'x' property in object\n"); + if (!y || !json_is_number(y)) + die("invalid 'y' property in object\n"); + if (!width || !json_is_number(width)) + die("invalid 'width' property in object\n"); + if (!height || !json_is_number(height)) + die("invalid 'height' property in object\n"); + + /* In tiled, those properties are float but we only use ints in MA */ + printf("%d|%d|%d|%d|", + (int)json_integer_value(x), + (int)json_integer_value(y), + (int)json_integer_value(width), + (int)json_integer_value(height) + ); + + if ((exec = find_action_exec(props))) + printf("%s", json_string_value(exec)); + + printf("\n"); +} + +static void +write_layer(const json_t *layer) +{ + json_t *objects = json_object_get(layer, "objects"); + json_t *data = json_object_get(layer, "data"); + json_t *name = json_object_get(layer, "name"); + json_t *tile, *object; + size_t index; + + if (!name || !json_is_string(name)) + die("invalid 'name' property in layer"); + if (!is_layer(json_string_value(name))) + die("invalid 'name' layer: %s\n", json_string_value(name)); + + printf("layer|%s\n", json_string_value(name)); + + /* Only foreground/background have 'data' property */ + if (json_is_array(data)) { + json_array_foreach(data, index, tile) { + if (!json_is_integer(tile)) + die("invalid 'data' property in layer\n"); + + printf("%d\n", (int)json_integer_value(tile)); + } + } + + /* Only objects has 'objects' property */ + if (json_is_array(objects)) { + json_array_foreach(objects, index, object) { + if (!json_is_object(object)) + die("invalid 'objects' property in layer\n"); + + write_object(object); + } + } +} + +static void +write_layers(const json_t *layers) +{ + size_t index; + json_t *layer; + + if (!layers) + return; + + json_array_foreach(layers, index, layer) { + if (!json_is_object(layer)) + die("layer is not an object\n"); + + write_layer(layer); + } +} + +static void +write_tileset(const json_t *tilesets) +{ + char path[PATH_MAX]; + char filename[FILENAME_MAX] = {0}, *ext; + const json_t *tileset, *source; + + if (json_array_size(tilesets) != 1) + die("map must contain exactly one tileset"); + + tileset = json_array_get(tilesets, 0); + source = json_object_get(tileset, "source"); + + if (!json_is_string(source)) + die("invalid 'source' property in tileset\n"); + + /* We need to replace the .json extension to .tileset. */ + snprintf(path, sizeof (path), "%s", json_string_value(source)); + snprintf(filename, sizeof (filename), "%s", basename(path)); + + if (!(ext = strstr(filename, ".json"))) + die("could not determine tileset extension"); + + *ext = '\0'; + + printf("tileset|%s.tileset\n", filename); +} + +int +main(void) +{ + json_t *document; + json_error_t error; + + document = json_loadf(stdin, 0, &error); + + if (!document) + die("%d:%d: %s\n", error.line, error.column, error.text); + + write_properties(json_object_get(document, "properties")); + write_dimensions(document); + write_layers(json_object_get(document, "layers")); + write_tileset(json_object_get(document, "tilesets")); + + json_decref(document); +} diff -r 82fd79d5019e -r 64f24b482722 tools/map/map.c --- a/tools/map/map.c Mon Nov 16 21:57:23 2020 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,347 +0,0 @@ -/* - * molko-map.c -- convert tiled tiled JSON files into custom files - * - * Copyright (c) 2020 David Demelier - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#include -#include -#include -#include -#include -#include -#include - -#include - -static void -die(const char *fmt, ...) -{ - assert(fmt); - - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - exit(1); -} - -static bool -is_layer(const char *name) -{ - return strcmp(name, "background") == 0 || - strcmp(name, "foreground") == 0 || - strcmp(name, "actions") == 0; -} - -static const json_t * -find_property(const json_t *props, const char *which) -{ - json_t *value; - size_t index; - - json_array_foreach(props, index, value) { - if (!json_is_object(value)) - continue; - - const json_t *key = json_object_get(value, "name"); - - if (json_is_string(key) && strcmp(json_string_value(key), which) == 0) - return value; - } - - return NULL; -} - -static const json_t * -find_action_exec(const json_t *props) -{ - assert(json_is_array(props)); - - json_t *prop, *name, *value; - size_t i; - - json_array_foreach(props, i, prop) { - if (!json_is_object(prop)) - die("invalid property in object\n"); - - name = json_object_get(prop, "name"); - value = json_object_get(prop, "value"); - - if (!name || !json_is_string(name)) - die("invalid 'name' property in object properties"); - if (!value || !json_is_string(value)) - die("invalid 'value' property in object properties"); - - if (strcmp(json_string_value(name), "exec") == 0) - return value; - } - - return NULL; -} - -static void -write_title(const json_t *props) -{ - const json_t *prop_title = find_property(props, "title"); - - if (!prop_title) - return; - - const json_t *title = json_object_get(prop_title, "value"); - - if (title && json_is_string(title)) - printf("title|%s\n", json_string_value(title)); -} - -static void -write_origin(const json_t *props) -{ - const json_t *prop_origin_x = find_property(props, "origin-x"); - const json_t *prop_origin_y = find_property(props, "origin-y"); - - if (!prop_origin_x || !prop_origin_y) - return; - - const json_t *origin_x = json_object_get(prop_origin_x, "value"); - const json_t *origin_y = json_object_get(prop_origin_y, "value"); - - if (!origin_x || !json_is_integer(origin_x) || - !origin_y || !json_is_integer(origin_y)) - return; - - printf("origin|%lld|%lld\n", json_integer_value(origin_x), - json_integer_value(origin_y)); -} - -static void -write_properties(const json_t *props) -{ - write_title(props); - write_origin(props); -} - -static void -write_metadata(const json_t *document) -{ - json_t *width = json_object_get(document, "width"); - json_t *height = json_object_get(document, "height"); - json_t *tilewidth = json_object_get(document, "tilewidth"); - json_t *tileheight = json_object_get(document, "tileheight"); - - if (!width || !json_is_integer(width)) - die("missing 'width' property\n"); - if (!height || !json_is_integer(height)) - die("missing 'height' property\n"); - if (!tilewidth || !json_is_integer(tilewidth)) - die("missing 'tilewidth' property\n"); - if (!tileheight || !json_is_integer(tileheight)) - die("missing 'tileheight' property\n"); - - printf("width|%lld\n", json_integer_value(width)); - printf("height|%lld\n", json_integer_value(height)); - printf("tilewidth|%lld\n", json_integer_value(tilewidth)); - printf("tileheight|%lld\n", json_integer_value(tileheight)); -} - -static void -write_object(const json_t *object) -{ - assert(json_is_object(object)); - - json_t *x = json_object_get(object, "x"); - json_t *y = json_object_get(object, "y"); - json_t *width = json_object_get(object, "width"); - json_t *height = json_object_get(object, "height"); - json_t *props = json_object_get(object, "properties"); - const json_t *exec; - - if (!x || !json_is_number(x)) - die("invalid 'x' property in object\n"); - if (!y || !json_is_number(y)) - die("invalid 'y' property in object\n"); - if (!width || !json_is_number(width)) - die("invalid 'width' property in object\n"); - if (!height || !json_is_number(height)) - die("invalid 'height' property in object\n"); - - /* In tiled, those properties are float but we only use ints in MA */ - printf("%d|%d|%d|%d|", - (int)json_integer_value(x), - (int)json_integer_value(y), - (int)json_integer_value(width), - (int)json_integer_value(height) - ); - - if ((exec = find_action_exec(props))) - printf("%s", json_string_value(exec)); - - printf("\n"); -} - -static void -write_layer(const json_t *layer) -{ - json_t *objects = json_object_get(layer, "objects"); - json_t *data = json_object_get(layer, "data"); - json_t *name = json_object_get(layer, "name"); - json_t *tile, *object; - size_t index; - - if (!name || !json_is_string(name)) - die("invalid 'name' property in layer"); - if (!is_layer(json_string_value(name))) - die("invalid 'name' layer: %s\n", json_string_value(name)); - - printf("layer|%s\n", json_string_value(name)); - - /* Only foreground/background have 'data' property */ - if (json_is_array(data)) { - json_array_foreach(data, index, tile) { - if (!json_is_integer(tile)) - die("invalid 'data' property in layer\n"); - - printf("%lld\n", json_integer_value(tile)); - } - } - - /* Only objects has 'objects' property */ - if (json_is_array(objects)) { - json_array_foreach(objects, index, object) { - if (!json_is_object(object)) - die("invalid 'objects' property in layer\n"); - - write_object(object); - } - } -} - -static void -write_layers(const json_t *layers) -{ - size_t index; - json_t *layer; - - if (!layers) - return; - - json_array_foreach(layers, index, layer) { - if (!json_is_object(layer)) - die("layer is not an object\n"); - - write_layer(layer); - } -} - -static void -write_tileset_tiledef(const json_t *tile) -{ - const json_t *id = json_object_get(tile, "id"); - const json_t *objectgroup = json_object_get(tile, "objectgroup"); - const json_t *objects = json_object_get(objectgroup, "objects"); - const json_t *first = json_array_get(objects, 0); - const json_t *x, *y, *w, *h; - - if (!json_is_integer(id)) - die("invalid 'id' property in tile\n"); - if (!json_is_object(objectgroup)) - die("invalid 'objectgroup' property in tile\n"); - if (!json_is_array(objects)) - die("invalid 'objects' property in tile\n"); - - x = json_object_get(first, "x"); - y = json_object_get(first, "y"); - w = json_object_get(first, "width"); - h = json_object_get(first, "height"); - - if (!json_is_integer(x) || !json_is_integer(y) || - !json_is_integer(w) || !json_is_integer(h)) - die("invalid collide object in tile description\n"); - - printf("%lld|%lld|%lld|%lld|%lld\n", - json_integer_value(id), - json_integer_value(x), - json_integer_value(y), - json_integer_value(w), - json_integer_value(h)); -} - -static void -write_tileset_tiledefs(const json_t *tiles) -{ - size_t index; - json_t *object; - - puts("tiledefs"); - - json_array_foreach(tiles, index, object) { - if (!json_is_object(object)) - die("tile is not an object\n"); - - write_tileset_tiledef(object); - } -} - -static void -write_tileset(const json_t *tileset) -{ - const json_t *image = json_object_get(tileset, "image"); - const json_t *tiles = json_object_get(tileset, "tiles"); - - if (!image || !json_is_string(image)) - die("invalid 'image' property in tileset"); - - printf("tileset|%s\n", json_string_value(image)); - - if (json_is_array(tiles)) - write_tileset_tiledefs(tiles); -} - -static void -write_tilesets(const json_t *tilesets) -{ - json_t *tileset; - size_t index; - - if (!json_is_array(tilesets)) - die("invalid 'tilesets' property"); - - json_array_foreach(tilesets, index, tileset) { - if (!json_is_object(tileset)) - die("invalid tileset"); - - write_tileset(tileset); - } -} - -int -main(void) -{ - json_t *document; - json_error_t error; - - document = json_loadf(stdin, 0, &error); - - if (!document) - die("%d:%d: %s\n", error.line, error.column, error.text); - - write_properties(json_object_get(document, "properties")); - write_metadata(document); - write_layers(json_object_get(document, "layers")); - write_tilesets(json_object_get(document, "tilesets")); - - json_decref(document); -} diff -r 82fd79d5019e -r 64f24b482722 tools/tileset/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/tileset/CMakeLists.txt Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,26 @@ +# +# CMakeLists.txt -- CMake build system for mlk-tileset +# +# Copyright (c) 2020 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +project(mlk-tileset) + +molko_define_executable( + TARGET mlk-tileset + SOURCES main.c + FOLDER tools + LIBRARIES Jansson::Jansson +) diff -r 82fd79d5019e -r 64f24b482722 tools/tileset/main.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/tileset/main.c Tue Nov 17 20:08:42 2020 +0100 @@ -0,0 +1,135 @@ +/* + * mlk-tileset.c -- convert tiled tilesets JSON files into custom files + * + * Copyright (c) 2020 David Demelier + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include +#include +#include +#include + +#include + +static noreturn void +die(const char *fmt, ...) +{ + assert(fmt); + + va_list ap; + + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + exit(1); +} + +static void +write_dimensions(const json_t *document) +{ + const json_t *tilewidth = json_object_get(document, "tilewidth"); + const json_t *tileheight = json_object_get(document, "tileheight"); + + if (!json_is_integer(tilewidth)) + die("invalid 'tilewidth' property\n"); + if (!json_is_integer(tileheight)) + die("invalid 'tileheight' property\n"); + + printf("tilewidth|%u\n", (unsigned int)json_integer_value(tilewidth)); + printf("tileheight|%u\n", (unsigned int)json_integer_value(tileheight)); +} + +static void +write_image(const json_t *document) +{ + const json_t *image = json_object_get(document, "image"); + + if (!json_is_string(image)) + die("invalid 'image' property\n"); + + printf("image|%s\n", json_string_value(image)); +} + +static void +write_tiledef(const json_t *tile) +{ + const json_t *id = json_object_get(tile, "id"); + const json_t *objectgroup = json_object_get(tile, "objectgroup"); + const json_t *objects = json_object_get(objectgroup, "objects"); + const json_t *first = json_array_get(objects, 0); + const json_t *x, *y, *w, *h; + + if (!json_is_integer(id)) + die("invalid 'id' property in tile\n"); + if (!json_is_object(objectgroup)) + die("invalid 'objectgroup' property in tile\n"); + if (!json_is_array(objects)) + die("invalid 'objects' property in tile\n"); + + x = json_object_get(first, "x"); + y = json_object_get(first, "y"); + w = json_object_get(first, "width"); + h = json_object_get(first, "height"); + + if (!json_is_integer(x) || !json_is_integer(y) || + !json_is_integer(w) || !json_is_integer(h)) + die("invalid collide object in tile description\n"); + + printf("%d|%d|%d|%d|%d\n", + (int)json_integer_value(id), + (int)json_integer_value(x), + (int)json_integer_value(y), + (int)json_integer_value(w), + (int)json_integer_value(h)); +} + +static void +write_tiledefs(const json_t *tiles) +{ + size_t index; + json_t *object; + + if (!json_is_array(tiles)) + return; + + puts("tiledefs"); + + json_array_foreach(tiles, index, object) { + if (!json_is_object(object)) + die("tile is not an object\n"); + + write_tiledef(object); + } +} + +int +main(int argc, char *argv[]) +{ + json_t *document; + json_error_t error; + + document = json_loadf(stdin, 0, &error); + + if (!document) + die("%d:%d: %s\n", error.line, error.column, error.text); + if (!json_is_object(document)) + die("root value isn't an object\n"); + + write_dimensions(document); + write_image(document); + write_tiledefs(json_object_get(document, "tiles")); + + json_decref(document); +}