Files
pytiled_parser/tests/test_data/tilesets/image_properties/expected.py
Darren Eberly 674b4b50c4 Changes to API
Should make integration with game engines easier in general.

Puts the burden of color parsing on Pytiled. As well as formatting layer data into a two dimensional list from a straight one dimensional.
2021-02-21 00:58:30 -05:00

28 lines
629 B
Python

from pathlib import Path
from pytiled_parser import tileset
from pytiled_parser.common_types import Color
EXPECTED = tileset.Tileset(
columns=8,
image=Path("../../images/tmw_desert_spacing.png"),
image_height=199,
image_width=265,
margin=1,
spacing=1,
name="tile_set_image",
tile_count=48,
tiled_version="1.3.5",
tile_height=32,
tile_width=32,
version=1.2,
properties={
"bool property": True,
"color property": Color(255, 0, 0, 255),
"float property": 5.6,
"int property": 5,
"string property": "testing",
},
type="tileset",
)