mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-27 22:59:48 +01:00
29 lines
647 B
Python
29 lines
647 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,
|
|
firstgid=1,
|
|
margin=1,
|
|
spacing=1,
|
|
name="tile_set_image",
|
|
tile_count=48,
|
|
tiled_version="1.6.0",
|
|
tile_height=32,
|
|
tile_width=32,
|
|
version="1.6",
|
|
properties={
|
|
"bool property": True,
|
|
"color property": Color(0, 0, 255, 255),
|
|
"float property": 5.6,
|
|
"int property": 5,
|
|
"string property": "testing",
|
|
},
|
|
type="tileset",
|
|
)
|