Mercurial > molko
changeset 551:856c2e96189d
cmake: add support for maps/tilesets
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 06 Mar 2023 20:44:43 +0100 |
parents | d624125746f3 |
children | ffd972a3d084 |
files | CMakeLists.txt cmake/MlkLibrary.cmake cmake/MlkMap.cmake cmake/MlkTileset.cmake libmlk-example/CMakeLists.txt libmlk-example/assets/maps/world.json libmlk-example/assets/sprites/water.png libmlk-example/assets/sprites/world.png libmlk-example/assets/tilesets/world.json mlk-tileset/mlk-tileset.c |
diffstat | 10 files changed, 3031 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Mon Mar 06 20:14:55 2023 +0100 +++ b/CMakeLists.txt Mon Mar 06 20:44:43 2023 +0100 @@ -68,7 +68,6 @@ find_library(M_LIBRARY m) if (MLK_WITH_NLS) - find_package(NLS REQUIRED) find_package(Intl) endif ()
--- a/cmake/MlkLibrary.cmake Mon Mar 06 20:14:55 2023 +0100 +++ b/cmake/MlkLibrary.cmake Mon Mar 06 20:44:43 2023 +0100 @@ -18,11 +18,13 @@ include(${CMAKE_CURRENT_LIST_DIR}/MlkBcc.cmake) include(${CMAKE_CURRENT_LIST_DIR}/MlkNls.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/MlkMap.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/MlkTileset.cmake) function(mlk_library) set(options "") set(oneValueArgs "NAME;FOLDER;TYPE") - set(multiValueArgs "SOURCES;ASSETS;LANGS;LIBRARIES;INCLUDES;FLAGS;OPTIONS") + set(multiValueArgs "SOURCES;ASSETS;LANGS;LIBRARIES;INCLUDES;FLAGS;OPTIONS;MAPS;TILESETS") cmake_parse_arguments(LIB "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) @@ -45,7 +47,14 @@ source_group(build/nls FILES ${MO}) endif () - add_library(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES} ${HEADERS} ${MO}) + if (LIB_MAPS) + mlk_maps("${LIB_MAPS}" ${CMAKE_CURRENT_BINARY_DIR}/maps maps) + endif () + if (LIB_TILESETS) + mlk_tilesets("${LIB_TILESETS}" ${CMAKE_CURRENT_BINARY_DIR}/tilesets tilesets) + endif () + + add_library(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES} ${HEADERS} ${MO} ${maps} ${tilesets}) if (LIB_FOLDER) set_target_properties(${LIB_NAME} PROPERTIES FOLDER extern)
--- a/cmake/MlkMap.cmake Mon Mar 06 20:14:55 2023 +0100 +++ b/cmake/MlkMap.cmake Mon Mar 06 20:44:43 2023 +0100 @@ -17,19 +17,22 @@ # function(mlk_map input output) - if (MLK_WITH_ZSTD) - set(cmd - COMMAND $<TARGET_FILE:mlk-map> < ${input} > ${output}.zst - COMMAND ZSTD::exe -17 -fq --rm ${output}.zst -o ${output} - ) - else () - set(cmd COMMAND $<TARGET_FILE:mlk-map> < ${input} > ${output}) - endif () + set(cmd COMMAND $<TARGET_FILE:mlk-map> < ${input} > ${output}) add_custom_command( OUTPUT ${output} COMMAND ${cmd} DEPENDS $<TARGET_FILE:mlk-map> - COMMENT "Generating ${output}" + COMMENT "Generating map ${output}" ) endfunction() + +macro(mlk_maps inputs output_directory output_var) + file(MAKE_DIRECTORY ${output_directory}) + + foreach (i ${inputs}) + get_filename_component(filename ${i} NAME_WE) + mlk_map(${i} ${output_directory}/${filename}.map) + list(APPEND ${output_var} ${output_directory}/${filename}.map) + endforeach () +endmacro()
--- a/cmake/MlkTileset.cmake Mon Mar 06 20:14:55 2023 +0100 +++ b/cmake/MlkTileset.cmake Mon Mar 06 20:44:43 2023 +0100 @@ -17,19 +17,22 @@ # function(mlk_tileset input output) - if (MLK_WITH_ZSTD) - set(cmd - COMMAND $<TARGET_FILE:mlk-tileset> < ${input} > ${output}.zst - COMMAND ZSTD::exe -17 -fq --rm ${output}.zst -o ${output} - ) - else () - set(cmd COMMAND $<TARGET_FILE:mlk-tileset> < ${input} > ${output}) - endif () + set(cmd COMMAND $<TARGET_FILE:mlk-tileset> < ${input} > ${output}) add_custom_command( OUTPUT ${output} COMMAND ${cmd} DEPENDS $<TARGET_FILE:mlk-tileset> - COMMENT "Generating ${output}" + COMMENT "Generating tileset ${output}" ) endfunction() + +macro(mlk_tilesets inputs output_directory output_var) + file(MAKE_DIRECTORY ${output_directory}) + + foreach (i ${inputs}) + get_filename_component(filename ${i} NAME_WE) + mlk_tileset(${i} ${output_directory}/${filename}.tileset) + list(APPEND ${output_var} ${output_directory}/${filename}.tileset) + endforeach () +endmacro()
--- a/libmlk-example/CMakeLists.txt Mon Mar 06 20:14:55 2023 +0100 +++ b/libmlk-example/CMakeLists.txt Mon Mar 06 20:44:43 2023 +0100 @@ -48,16 +48,28 @@ ${libmlk-example_SOURCE_DIR}/assets/sprites/ui-cursor.png ) +set( + MAPS + ${libmlk-example_SOURCE_DIR}/assets/maps/world.json +) + +set( + TILESETS + ${libmlk-example_SOURCE_DIR}/assets/tilesets/world.json +) + mlk_library( NAME libmlk-example SOURCES ${SOURCES} ASSETS ${ASSETS} TYPE STATIC LIBRARIES libmlk-rpg + MAPS ${MAPS} + TILESETS ${TILESETS} INCLUDES PUBLIC $<BUILD_INTERFACE:${libmlk-example_SOURCE_DIR}> $<BUILD_INTERFACE:${libmlk-example_BINARY_DIR}> ) -source_group(TREE ${libmlk-example_SOURCE_DIR} FILES ${ASSETS} ${SOURCES}) +source_group(TREE ${libmlk-example_SOURCE_DIR} FILES ${ASSETS} ${SOURCES} ${MAPS} ${TILESETS})
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmlk-example/assets/maps/world.json Mon Mar 06 20:44:43 2023 +0100 @@ -0,0 +1,98 @@ +{ "compressionlevel":-1, + "height":20, + "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, 237, 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, 237, 215, 216, 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, 237, 216, 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, 192, 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, 237, 216, 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, 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, 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, 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, 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, 261, 168, 289, 289, 289, 289, 289, 289, 289, 289, 289, 166, 167, 262, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 261, 167, 167, 167, 168, 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, 192, 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, 261, 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], + "height":20, + "id":1, + "name":"background", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":30, + "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, 22, 23, 24, 0, 0, 366, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 46, 47, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 70, 71, 72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 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":2, + "name":"foreground", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":30, + "x":0, + "y":0 + }], + "nextlayerid":3, + "nextobjectid":1, + "orientation":"orthogonal", + "properties":[ + { + "name":"origin-x", + "type":"int", + "value":384 + }, + { + "name":"origin-y", + "type":"int", + "value":480 + }, + { + "name":"title", + "type":"string", + "value":"Isolated Island" + }], + "renderorder":"right-down", + "tiledversion":"1.9.2", + "tileheight":48, + "tilesets":[ + { + "firstgid":1, + "source":"..\/tilesets\/world.json" + }], + "tilewidth":48, + "type":"map", + "version":"1.9", + "width":30 +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmlk-example/assets/tilesets/world.json Mon Mar 06 20:44:43 2023 +0100 @@ -0,0 +1,2879 @@ +{ "columns":24, + "image":"..\/sprites\/world.png", + "imageheight":1392, + "imagewidth":1152, + "margin":0, + "name":"main", + "spacing":0, + "tilecount":696, + "tiledversion":"1.9.2", + "tileheight":48, + "tiles":[ + { + "id":165, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":16, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":16, + "x":6, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":190, + "properties":[ + { + "name":"animation-delay", + "type":"int", + "value":500 + }, + { + "name":"animation-file", + "type":"string", + "value":"animation-water.png" + }] + }, + { + "id":191, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":16, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":42, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":24, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":24, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":24, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":24, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":24, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":296, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":297, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":298, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":299, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":300, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":301, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":302, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":303, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":304, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":320, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":321, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":322, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":323, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":324, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":325, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":326, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":327, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":344, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":345, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":346, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":347, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":348, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":349, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":350, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":351, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":368, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":369, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":370, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":371, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":372, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":373, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":374, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":375, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":392, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":393, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":394, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":395, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":396, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":397, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":398, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":399, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"collide", + "height":48, + "id":2, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":416, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":417, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":418, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":419, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":420, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":421, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }, + { + "id":422, + "objectgroup": + { + "draworder":"index", + "name":"", + "objects":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "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":[ + { + "class":"", + "height":48, + "id":1, + "name":"", + "rotation":0, + "visible":true, + "width":48, + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + } + }], + "tilewidth":48, + "type":"tileset", + "version":"1.9" +} \ No newline at end of file
--- a/mlk-tileset/mlk-tileset.c Mon Mar 06 20:14:55 2023 +0100 +++ b/mlk-tileset/mlk-tileset.c Mon Mar 06 20:44:43 2023 +0100 @@ -107,7 +107,7 @@ } static void -write_tiledef(const json_t *tile) +write_collision(const json_t *tile) { const json_t *id = json_object_get(tile, "id"); const json_t *objectgroup = json_object_get(tile, "objectgroup"); @@ -142,7 +142,7 @@ } static void -write_tiledefs(const json_t *tiles) +write_collisions(const json_t *tiles) { size_t index; json_t *object; @@ -150,13 +150,13 @@ if (!json_is_array(tiles)) return; - puts("tiledefs"); + printf("collisions\n"); json_array_foreach(tiles, index, object) { if (!json_is_object(object)) die("tile is not an object\n"); - write_tiledef(object); + write_collision(object); } } @@ -169,7 +169,7 @@ if (!json_is_array(tiles)) return; - puts("animations"); + printf("animations\n"); json_array_foreach(tiles, index, object) { if (!json_is_object(object)) @@ -197,7 +197,7 @@ write_dimensions(document); write_image(document); - write_tiledefs(json_object_get(document, "tiles")); + write_collisions(json_object_get(document, "tiles")); write_animations(json_object_get(document, "tiles")); json_decref(document);