Skip to main content

Some explanation here soon...

How to use it

  1. Use LDtk to create a new project
  2. in LDtk, create a new Tiles layer, with a sprites image and draw how the sprites should look like (i.e. manually draw a rectangle, a cross, etc. with the right tiles)
  3. save the project
  4. install this Python package (https://pypi.org/project/ldtk-intgrid-creator/)
  5. Run the script like this:

Following this syntax:

create_int_level PROJECT_FILE_PATH SOURCE_LEVEL_ID SOURCE_LAYER_ID OUTPUT_INT_GRID_LAYER_ID TILE_SIZE_PX

Example:

create_int_level ./examples/source.ldtk Level_0 Tiles IntGrid 16
  1. Load the project again in LDtk
  2. Chose the layer you chose as output (i.e. IntGrid)
  3. Start drawing and see if it works as expected

Bonus tip:

If you want to enforce some tiles to be taken as "empty" reference, hover your mouse cursor over them and copy the ID from status bar in "Tile" tag, and write them separated by comma as a last argument for the script command. For instance: if the tile to represent empty tiles is "137", you should write it like this:

create_int_level ./examples/source.ldtk Level_0 Tiles IntGrid 16 137

Missing

  • update auto-layers based on after integer grid is updated (based on intGridCsv)
  • better docs (specially about installation)
  • better testing

Release files for ldtk-intgrid-creator 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ldtk-intgrid-creator 0.2.0
File Size Uploaded
ldtk_intgrid_creator-0.2.0.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ldtk-intgrid-creator 0.2.0
File Interpreter ABI Platform
ldtk_intgrid_creator-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / ldtk_intgrid_creator-0.2.0.tar.gz

Download URL ldtk_intgrid_creator-0.2.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb787d9c8207459e7e85f222d79253bab04d317be2d36ad9b84920904c176f63
BLAKE2b-256 checksum
How to use checksums
f2ea75ae0e1dca785b0c0984b0324469228b8494433cfd569e66376d845fe2d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

Release files / ldtk_intgrid_creator-0.2.0-py3-none-any.whl

Download URL ldtk_intgrid_creator-0.2.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f258424ad0e92e1417a3992f71c4434f7f12f0064532ed00c84a5bf478714d39
BLAKE2b-256 checksum
How to use checksums
72176b342e633e9c3684e69a5b06a9d8ecb3430efde43a6dd321560adb9bd707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page