Implement --input-tileset (#1464)

As discussed in https://github.com/gbdev/rgbds/issues/575#issuecomment-1991456862
This commit is contained in:
Eldred Habert
2024-09-04 21:20:01 +02:00
committed by GitHub
parent 1283b0b6a6
commit 80d37f9988
18 changed files with 168 additions and 23 deletions

View File

@@ -0,0 +1,2 @@
-i input_tileset.in.2bpp
-u

Binary file not shown.

Binary file not shown.

BIN
test/gfx/input_tileset.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

View File

@@ -0,0 +1,2 @@
error: The input tileset's tile #7 was deduplicated; please check that your deduplication flags (`-u`, `-m`) are consistent with what was used to generate the input tileset
Conversion aborted after 1 error

View File

@@ -0,0 +1,3 @@
-i input_tileset_deduped.in.2bpp
-u
-o result.2bpp

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

View File

@@ -0,0 +1,4 @@
error: Tile at (0, 0) is not within the input tileset, and `-o` was not given!
error: Tile at (0, 8) is not within the input tileset, and `-o` was not given!
error: Tile at (8, 8) is not within the input tileset, and `-o` was not given!
Conversion aborted after 3 errors

View File

@@ -0,0 +1,2 @@
-i input_tileset.in.2bpp
-u

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B