Ian Eldred Pudney 2308428a5e Add support for some Tiled features: class properties and object alignment
Class properties: These are properties in Tiled that are themselves dicts of additional properties. However, a basic dict cannot be used bec
ause class properties also have a "type" that is not a field.
Object alignment: Where the positioning and rotation anchor for a tile object is located.
2022-04-29 08:27:15 -06:00
2021-12-25 22:20:36 -05:00
2021-12-25 22:30:11 -05:00
2019-04-28 20:00:30 -04:00
2021-04-19 21:34:32 -04:00
2021-12-25 22:20:36 -05:00

PyTiled Parser

PyTiled Parser is a Python Library for parsing JSON formatted Tiled Map Editor maps and tilesets to be used as maps and levels for 2D top-down (orthogonal, hexogonal, or isometric) or side-scrolling games in a strictly typed fashion.

PyTiled Parser is not tied to any particular graphics library, and can be used with Arcade, Pyglet, Pygame, etc.

The Arcade library has supporting code to integrate PyTiled with that 2D libary, and example code showing its use.

Original module by Beefy-Swain. Significant contributions from pvcraven and Cleptomania.

Development

To develop pytiled parser, clone the repo, create a venv using a supported Python version, and activate it. Then install the package as well as all testing dependencies with the command python -m pip install -e ".[tests]".

Testing

Run pytest --cov=pytiled_parser to run the test harness and report coverage.

Description
No description provided
Readme MIT 810 KiB
Languages
Python 100%