Tyled 🦋
CLI utility for generating Tiled Tilesets
📦 Package
Installation
From PyPI
TLDR - do this at your own risk
pip install tyled
Recommended - pipX
If you don't already have it installed go to https://pypi.org/project/pipx/ for instructions
pipx install tyled
From GitHub
Clone the repository
git clone https://github.com/kfields/tyled.git
Navigate to the new directory which contains the repository
cd tyled
Create a Python 3 virtual environment called env
python3 -m venv env
Activate the environment
source env/bin/activate
Install required packages
pip install -r requirements.txt
Commands
Bake
tyled bake mytileset.toml [--save/--no-save][--show/--no-show][--rotation/--no-rotation]
Options
Default options are --save, --no-show, --no-rotation
Projects
Tyled Projects are defined using TOML files.
All Projects must at least have a name and type
name = 'mytileset'
type = 'collection'
Options
Options may be defined within the project file. Any options defined here will override the command line options
[options]
rotation = true
Tilesets
Tyled currently supports three different kinds of Tilesets:
Collection Tileset
A Collection Tileset is composed of tiles with images stored in separate files
name = 'mytileset'
type = 'collection'
firstgid = 1
source = 'sticker-knight/map'
This example will generate mytileset.tsx in the current working directory
Orthogonal Tileset
An Orthogonal Tileset is composed of tiles that have the same dimensions in one image file
name = 'mytileset'
type = 'orthogonal'
firstgid = 1
source = 'platformer/tiles'
tilewidth = 128
tileheight = 128
spacing = 0
margin = 0
columns = 12
This example will generate mytileset.tsx and mytileset.png in the current working directory
Atlas Tileset
An Atlas Tileset is composed of tiles that do not have the same dimensions in one image file
name = 'mytileset'
type = 'atlas'
firstgid = 0
source = 'sticker-knight/map'
width = 1024
height = 1024
spacing = 0
margin = 0
This example will generate mytileset.tsx and mytileset.png in the current working directory
Metadata
Release files for tyled 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tyled-0.2.0.tar.gz | 7.4 kB | Without provenance | Details for tyled-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tyled-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for tyled-0.2.0-py3-none-any.whl |
Total release size: 18.2 kB
Release files / tyled-0.2.0.tar.gz
| Download URL | tyled-0.2.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dea130b333165cc8ff2aaa0912b138fc5b22ea4770e97e8479abd746f3217959
|
|
BLAKE2b-256 checksum How to use checksums |
2378179e64ce069a9aaea4855230df923ea33ba3f3ea9ffbc1a1389f46fc4f92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Windows/10
|
Release files / tyled-0.2.0-py3-none-any.whl
| Download URL | tyled-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a629f43b19bf6c06e8bda061c4cb5c8a7002506321c8bb6f72c01c50a3a97a36
|
|
BLAKE2b-256 checksum How to use checksums |
d9e2c19b705c55b3971affb8e17157ea0b9e7d7d596709025fffbb04c0679fb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Windows/10
|
Security for tyled 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.