Skip to main content

CLI utility for generating Tiled Tilesets

Project description

Tyled :butterfly:

CLI utility for generating Tiled Tilesets

:notebook: Documentation

:package: 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tyled-0.1.dev5.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tyled-0.1.dev5-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file tyled-0.1.dev5.tar.gz.

File metadata

  • Download URL: tyled-0.1.dev5.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for tyled-0.1.dev5.tar.gz
Algorithm Hash digest
SHA256 b1c7c917045bf44566c4a4aca270f9cf52731dbab715300bd0e05c8426bda17c
MD5 7e1429d8401af63dcee6b07707645871
BLAKE2b-256 fee150833976d2eabc4710b2efd64c7920c4889e02a6707650718b97b9cdc9f3

See more details on using hashes here.

File details

Details for the file tyled-0.1.dev5-py3-none-any.whl.

File metadata

  • Download URL: tyled-0.1.dev5-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for tyled-0.1.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8b2c49e650a481ca5a2c238de042dc9a3ff8f9fdae7362fcdd2795c09b7b18
MD5 15b2beb149ba36aa527e6af95e347799
BLAKE2b-256 df86a9980c2d05c334a88d2048a74b6dd258dbd627732eca00aa6f3bb634f760

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page