#tile #import #format #definition #channel #sprites #rpg

tileset

Tailset definition, and supports importing multiple formats

12 releases

0.1.3 Apr 24, 2023
0.1.2 Apr 23, 2023
0.0.7 Apr 21, 2023

#546 in Images

Download history 3/week @ 2024-02-23 1/week @ 2024-03-01 124/week @ 2024-03-29

124 downloads per month

MPL-2.0 license

74KB
1.5K SLoC

TileSets

Standard Format

The standard save format of the library is a row of 16 tiles, if there is a variant, placed directly below the corresponding position.

Ideally you should provide sprites with transparency channels.

Supported Format

For tiles in non-standard cases, conversion functions are provided.

RPG Maker XP tiles

RPG Maker MV tiles

Tiny tiles

Wang tiles

Packed Format

Questions and Answers

Q: Is the save format too wasteful?

Yes, this resource format will have a lot of useless transparent pixels.

But this is just a lossless resource format for editor, it will compile into a compact format in game.

And thanks to the png compression algorithm, it doesn't take up too much extra disk space

Q: How about import 3-tiles or 4-tiles?

The library does not (and will not) support this, you must You have to manually decompose into 2-tiles.

Q: NavMeshes, Layers?

This library is only for resource management, please use TileMap for related functions.

Dependencies

~14–23MB
~139K SLoC