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.org/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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ldtk_intgrid_creator-0.2.0.tar.gz | 7.7 kB | Without provenance | Details for ldtk_intgrid_creator-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ldtk_intgrid_creator-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ldtk_intgrid_creator-0.2.0-py3-none-any.whl |
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
|
Security for ldtk-intgrid-creator 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.