mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
tests: created a new tileset for individual image tiles with animations and properties
This commit is contained in:
BIN
tests/test_data/images/tile_01.png
Normal file
BIN
tests/test_data/images/tile_01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
tests/test_data/images/tile_02.png
Normal file
BIN
tests/test_data/images/tile_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
tests/test_data/images/tile_03.png
Normal file
BIN
tests/test_data/images/tile_03.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
tests/test_data/images/tile_04.png
Normal file
BIN
tests/test_data/images/tile_04.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
129
tests/test_data/tilesets/individual_images/tileset.json
Normal file
129
tests/test_data/tilesets/individual_images/tileset.json
Normal file
@@ -0,0 +1,129 @@
|
||||
{ "columns":0,
|
||||
"editorsettings":
|
||||
{
|
||||
"export":
|
||||
{
|
||||
"format":"",
|
||||
"target":"."
|
||||
}
|
||||
},
|
||||
"grid":
|
||||
{
|
||||
"height":1,
|
||||
"orientation":"orthogonal",
|
||||
"width":1
|
||||
},
|
||||
"margin":0,
|
||||
"name":"tileset",
|
||||
"spacing":0,
|
||||
"tilecount":4,
|
||||
"tiledversion":"1.3.5",
|
||||
"tileheight":32,
|
||||
"tiles":[
|
||||
{
|
||||
"animation":[
|
||||
{
|
||||
"duration":100,
|
||||
"tileid":0
|
||||
},
|
||||
{
|
||||
"duration":100,
|
||||
"tileid":1
|
||||
},
|
||||
{
|
||||
"duration":100,
|
||||
"tileid":2
|
||||
},
|
||||
{
|
||||
"duration":100,
|
||||
"tileid":3
|
||||
}],
|
||||
"id":0,
|
||||
"image":"..\/..\/images\/tile_01.png",
|
||||
"imageheight":32,
|
||||
"imagewidth":32,
|
||||
"properties":[
|
||||
{
|
||||
"name":"float property",
|
||||
"type":"float",
|
||||
"value":2.2
|
||||
}],
|
||||
"type":"tile"
|
||||
},
|
||||
{
|
||||
"id":1,
|
||||
"image":"..\/..\/images\/tile_02.png",
|
||||
"imageheight":32,
|
||||
"imagewidth":32,
|
||||
"objectgroup":
|
||||
{
|
||||
"draworder":"index",
|
||||
"name":"",
|
||||
"objects":[
|
||||
{
|
||||
"height":13.7196924896511,
|
||||
"id":2,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":14.4766410408043,
|
||||
"x":13.4358367829687,
|
||||
"y":13.5304553518628
|
||||
},
|
||||
{
|
||||
"ellipse":true,
|
||||
"height":11.070372560615,
|
||||
"id":3,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":14.287403903016,
|
||||
"x":13.8143110585452,
|
||||
"y":1.98698994677705
|
||||
}],
|
||||
"opacity":1,
|
||||
"type":"objectgroup",
|
||||
"visible":true,
|
||||
"x":0,
|
||||
"y":0
|
||||
},
|
||||
"properties":[
|
||||
{
|
||||
"name":"string property",
|
||||
"type":"string",
|
||||
"value":"testing"
|
||||
}],
|
||||
"type":"tile"
|
||||
},
|
||||
{
|
||||
"id":2,
|
||||
"image":"..\/..\/images\/tile_03.png",
|
||||
"imageheight":32,
|
||||
"imagewidth":32,
|
||||
"properties":[
|
||||
{
|
||||
"name":"bool property",
|
||||
"type":"bool",
|
||||
"value":true
|
||||
}],
|
||||
"type":"tile"
|
||||
},
|
||||
{
|
||||
"id":3,
|
||||
"image":"..\/..\/images\/tile_04.png",
|
||||
"imageheight":32,
|
||||
"imagewidth":32,
|
||||
"properties":[
|
||||
{
|
||||
"name":"color property",
|
||||
"type":"color",
|
||||
"value":"#ff5500ff"
|
||||
}],
|
||||
"type":"tile"
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"tileset",
|
||||
"version":1.2
|
||||
}
|
||||
Reference in New Issue
Block a user