mirror of https://github.com/bgiraudr/Adoranda.git
Compare commits
2 Commits
1513502e0b
...
eff11d7908
Author | SHA1 | Date |
---|---|---|
bgiraudr | eff11d7908 | |
Lephenixnoir | 686548cfbc |
|
@ -13,6 +13,8 @@ fxconv_declare_converters(assets-cg/converters.py)
|
|||
|
||||
add_custom_command(
|
||||
OUTPUT "${CMAKE_CURRENT_LIST_DIR}/assets-cg/maps/testCarte.json"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/assets-cg/maps/1.json"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/assets-cg/maps/2.json"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/assets-cg/maps/inside/1.json"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/assets-cg/maps/inside/2.json"
|
||||
COMMENT "Convert tmx map to json"
|
||||
|
|
|
@ -73,7 +73,7 @@ def convert_map(input, output, params, target):
|
|||
#create a dictionnary {tile id:type}
|
||||
for i in data_tileset["tiles"]:
|
||||
id = i["id"]+1
|
||||
type = i["type"]
|
||||
type = i["class"] if "class" in i else i["type"]
|
||||
|
||||
value = tile_type.get(type) if type in tile_type else TILE_AIR
|
||||
tile_value[id] = value
|
||||
|
|
Loading…
Reference in New Issue