Tool to generate IntGrid level for LDtk projects
Project description
Some explanation here soon...
How to use it
- Use LDtk to create a new project
- 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)
- save the project
- install this Python package (https://pypi-hypernode.com/project/ldtk-intgrid-creator/)
- 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
- Load the project again in LDtk
- Chose the layer you chose as output (i.e. IntGrid)
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ldtk_intgrid_creator-0.2.0.tar.gz
.
File metadata
- Download URL: ldtk_intgrid_creator-0.2.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb787d9c8207459e7e85f222d79253bab04d317be2d36ad9b84920904c176f63 |
|
MD5 | 2e37a3596570ff828a5e22b1b7d54ffd |
|
BLAKE2b-256 | f2ea75ae0e1dca785b0c0984b0324469228b8494433cfd569e66376d845fe2d3 |
File details
Details for the file ldtk_intgrid_creator-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ldtk_intgrid_creator-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f258424ad0e92e1417a3992f71c4434f7f12f0064532ed00c84a5bf478714d39 |
|
MD5 | 1be27888660cfbbadc2f89795669d691 |
|
BLAKE2b-256 | 72176b342e633e9c3684e69a5b06a9d8ecb3430efde43a6dd321560adb9bd707 |