diff options
| author | 3gg <3gg@shellblade.net> | 2025-09-04 18:23:42 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-09-04 18:23:42 -0700 |
| commit | 83ae1c229683fd4df973edf76948248dee0fb118 (patch) | |
| tree | f41c641b933ec252f981d515e8f0c2873ce53d10 | |
| parent | eca9315556ab4e9c813180de5f33c1e0b8bbb9c3 (diff) | |
Add map palette TODO
| -rw-r--r-- | tools/mkasset.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mkasset.py b/tools/mkasset.py index f21a2f9..c8311b6 100644 --- a/tools/mkasset.py +++ b/tools/mkasset.py | |||
| @@ -70,6 +70,8 @@ def carve_image(rgba_bytes, tile_width, tile_height, columns) -> Generator[bytea | |||
| 70 | yield tile_bytes.copy() | 70 | yield tile_bytes.copy() |
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | # TODO: Palettize it like we do for sprites. Use 2-byte indices to allow up to | ||
| 74 | # 65k colours. | ||
| 73 | def convert_tsx(input_filepath, output_filepath): | 75 | def convert_tsx(input_filepath, output_filepath): |
| 74 | """Converts a Tiled .tsx tileset file to a .TS tile set file.""" | 76 | """Converts a Tiled .tsx tileset file to a .TS tile set file.""" |
| 75 | xml = ElementTree.parse(input_filepath) | 77 | xml = ElementTree.parse(input_filepath) |
