gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 4c4fce607950d474247c172f88449361c9fd002c parent cdcc03a6ce2dad727caf8dcd8b4e2c5c22a7a492 Author: bbbbbr <bbbbbr@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:18:19 -0700 Merge pull request #707 from bbbbbr/png2asset/area_name_arg png2asset: add option to specify area name Diffstat:
| M | gbdk-support/png2asset/export_c_file.cpp | 7 | ++++++- |
| M | gbdk-support/png2asset/process_arguments.cpp | 16 | ++++++++++++++-- |
| M | gbdk-support/png2asset/process_arguments.h | 6 | ++++++ |
| M | gbdk-support/png2asset/testing/Makefile | 1 | + |
| A | gbdk-support/png2asset/testing/ref/zgb_sushi_tiles_lit.c | 1458 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | gbdk-support/png2asset/testing/ref/zgb_sushi_tiles_lit.h | 15 | +++++++++++++++ |
6 files changed, 1500 insertions(+), 3 deletions(-)
diff --git a/gbdk-support/png2asset/export_c_file.cpp b/gbdk-support/png2asset/export_c_file.cpp @@ -59,7 +59,12 @@ bool export_c_file( PNG2AssetData* assetData) { return false; } - if(assetData->args->bank >= 0) fprintf(file, "#pragma bank %d\n\n", assetData->args->bank); + if (assetData->args->bank != BANK_NUM_UNSET) { + if (assetData->args->area_specified) + fprintf(file, "#pragma constseg %s_%d\n\n", assetData->args->area_name.c_str(), assetData->args->bank); + else + fprintf(file, "#pragma bank %d\n\n", assetData->args->bank); + } fprintf(file, "//AUTOGENERATED FILE FROM png2asset\n\n"); diff --git a/gbdk-support/png2asset/process_arguments.cpp b/gbdk-support/png2asset/process_arguments.cpp @@ -64,7 +64,8 @@ int processPNG2AssetArguments(int argc, char* argv[], PNG2AssetArguments* args) args->flip_tiles = true; // args->errorCode; - args->bank = -1; + args->bank = BANK_NUM_UNSET; + args->area_specified = false; args->sprite_mode = SPR_8x16; args->bpp = 2; args->props_default = 0; @@ -99,7 +100,8 @@ int processPNG2AssetArguments(int argc, char* argv[], PNG2AssetArguments* args) printf("-spr8x16 use SPRITES_8x16 (this is the default)\n"); printf("-spr16x16msx use SPRITES_16x16\n"); printf("-sprite_no_optimize keep empty sprite tiles, do not remove duplicate tiles\n"); - printf("-b <bank> bank (default: fixed bank)\n"); + printf("-b <banknum> Bank number (default: fixed bank)\n"); + printf("-area <area name> Area name. Alters \"pragma bank ...\" output to constseg style. (Ex: -area LIT)\n"); printf("-keep_palette_order use png palette\n"); printf("-repair_indexed_pal try to repair indexed tile palettes (implies \"-keep_palette_order\")\n"); printf("-noflip disable tile flip\n"); @@ -193,6 +195,11 @@ int processPNG2AssetArguments(int argc, char* argv[], PNG2AssetArguments* args) { args->bank = atoi(argv[++i]); } + else if(!strcmp(argv[i], "-area")) + { + args->area_name = argv[++i]; + args->area_specified = true; + } else if(!strcmp(argv[i], "-keep_palette_order")) { args->keep_palette_order = true; @@ -335,6 +342,11 @@ int processPNG2AssetArguments(int argc, char* argv[], PNG2AssetArguments* args) args->data_name = args->output_filename.substr(slash_pos + 1, dot_pos - 1 - slash_pos); replace(args->data_name.begin(), args->data_name.end(), '-', '_'); + if ((args->area_specified == true) && (args->bank == BANK_NUM_UNSET)) { + printf("Error: \"-area\" specified but bank number is missing. A bank number is required, use \"-b\"\n"); + return EXIT_FAILURE; + } + return EXIT_SUCCESS; } diff --git a/gbdk-support/png2asset/process_arguments.h b/gbdk-support/png2asset/process_arguments.h @@ -11,6 +11,10 @@ using namespace std; +enum { + BANK_NUM_UNSET = -1 +}; + struct PNG2AssetArguments { @@ -54,6 +58,8 @@ struct PNG2AssetArguments { int errorCode; int bank; + string area_name; + bool area_specified; int sprite_mode; int bpp; int props_default; // Default Sprite props has no attributes enabled diff --git a/gbdk-support/png2asset/testing/Makefile b/gbdk-support/png2asset/testing/Makefile @@ -54,6 +54,7 @@ generate-assets: # gg/sms = -noflip -pack_mode sms -bpp 4 -keep_palette_order $(PNG2ASSET) $(RES)/SMS/sushi_level07.png -c $(OUTDIR)/zgb_sushi_level07.c -b 255 -map -noflip -pack_mode sms -bpp 4 -keep_palette_order -use_structs -keep_palette_order -rel_paths -keep_duplicate_tiles -source_tileset sushi_tiles.png -entity_tileset sushi_objects.png $(PNG2ASSET) $(RES)/SMS/sushi_tiles.png -c $(OUTDIR)/zgb_sushi_tiles.c -b 255 -map -noflip -pack_mode sms -bpp 4 -keep_palette_order -use_structs -keep_palette_order -keep_duplicate_tiles -tiles_only + $(PNG2ASSET) $(RES)/SMS/sushi_tiles.png -c $(OUTDIR)/zgb_sushi_tiles_lit.c -b 255 -area LIT -map -noflip -pack_mode sms -bpp 4 -keep_palette_order -use_structs -keep_palette_order -keep_duplicate_tiles -tiles_only # Entity and Source tileset interaction diff --git a/gbdk-support/png2asset/testing/ref/zgb_sushi_tiles_lit.c b/gbdk-support/png2asset/testing/ref/zgb_sushi_tiles_lit.c @@ -0,0 +1,1458 @@ +#pragma constseg LIT_255 + +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" + +BANKREF(zgb_sushi_tiles_lit) + +const palette_color_t zgb_sushi_tiles_lit_palettes[16] = { + RGB8( 24, 32, 40), RGB8( 48, 32, 56), RGB8( 80, 40, 56), RGB8(112, 48, 64), + RGB8(120, 64, 88), RGB8(232,104,112), RGB8(248,168,112), RGB8(248,248,200), + RGB8(200,168,112), RGB8(152,104, 56), RGB8(104, 72, 48), RGB8( 48, 40, 32), + RGB8( 8, 32, 64), RGB8( 48, 40, 32), RGB8( 0,128, 0), RGB8( 0,192, 0) + +}; + +const uint8_t zgb_sushi_tiles_lit_tiles[2848] = { + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xcf,0xef, + 0x00,0xff, + 0xc3,0xe3, + 0x00,0xff, + 0x00,0xff, + 0x00,0xff, + 0xfb,0xff, + 0x00,0xff, + 0xf9,0xfd, + 0x00,0xff, + 0x78,0x7c, + 0x00,0xff, + 0x00,0xff, + 0x00,0xff, + 0xdf,0xff, + 0x00,0xff, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0x53,0x2f, + 0x00,0xff, + 0xe9,0x17, + 0x00,0xff, + 0xd1,0x2f, + 0x00,0xff, + 0xa3,0x5f, + 0x00,0xff, + 0x45,0xbf, + 0x00,0xff, + 0x8b,0x7f, + 0x00,0xff, + 0x57,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x7f,0x00, + 0x00,0xff, + 0x55,0x2a, + 0x00,0xff, + 0xaa,0x55, + 0x00,0xff, + 0x54,0xab, + 0x00,0xff, + 0xa1,0x5e, + 0x00,0xff, + 0x55,0xbf, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x7e,0x00, + 0x00,0xff, + 0xae,0x50, + 0x00,0xff, + 0x56,0xa8, + 0x00,0xff, + 0x2e,0xd0, + 0x00,0xff, + 0x56,0xe8, + 0x00,0xff, + 0xae,0xf0, + 0x00,0xff, + 0x46,0xf8, + 0x00,0xff, + 0xf9,0xfe, + 0x00,0xff, + 0x07,0x01, + 0x00,0xff, + 0xf3,0x0f, + 0x00,0xff, + 0x45,0xbf, + 0x00,0xff, + 0x8b,0x7f, + 0x00,0xff, + 0x55,0xff, + 0x00,0xff, + 0xab,0xff, + 0x00,0xff, + 0x55,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xbf,0xff, + 0x00,0xff, + 0x5f,0xff, + 0x00,0xff, + 0x2f,0xff, + 0x00,0xff, + 0x57,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x06,0xff, + 0x00,0xff, + 0x03,0xff, + 0x00,0xff, + 0x81,0x7f, + 0x00,0xff, + 0x40,0xbf, + 0x00,0xff, + 0xa0,0x5f, + 0x00,0xff, + 0x10,0xff, + 0x00,0xff, + 0x2a,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xfe,0xfe, + 0x00,0xff, + 0xfd,0xff, + 0x00,0xff, + 0xdd,0xff, + 0x00,0xff, + 0x2b,0xff, + 0x00,0xff, + 0x55,0xff, + 0x00,0xff, + 0x2b,0xff, + 0x00,0xff, + 0xd5,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xc3,0x42, + 0xff,0xff, + 0x83,0x8a, + 0xff,0xff, + 0x07,0x04, + 0xff,0xff, + 0x0f,0x1a, + 0xff,0xff, + 0x1f,0x54, + 0xff,0xff, + 0x7f,0x68, + 0xff,0xff, + 0xff,0xd0, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0x55,0xaa, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0xaa,0xff, + 0xff,0xff, + 0xd5,0xff, + 0xff,0xff, + 0xef,0xff, + 0xff,0xff, + 0xaa,0xff, + 0xff,0xff, + 0xff,0xff, + 0xff,0xff, + 0xc3,0x42, + 0xff,0xff, + 0xc1,0x51, + 0xff,0xff, + 0xe0,0x60, + 0xff,0xff, + 0xd0,0x78, + 0xff,0xff, + 0xe8,0x3a, + 0xff,0xff, + 0xf6,0x1e, + 0xff,0xff, + 0xff,0x0b, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0x56,0xa9, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0xaa,0xff, + 0xff,0xff, + 0x54,0xff, + 0xff,0xff, + 0xee,0xff, + 0xff,0xff, + 0xab,0xff, + 0xff,0xff, + 0xff,0xff, + 0xff,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xfb,0xff, + 0x00,0xff, + 0xf7,0xfb, + 0x00,0xff, + 0xe9,0xf7, + 0x00,0xff, + 0xd3,0xef, + 0x00,0xff, + 0xa7,0xdf, + 0x00,0xff, + 0x4e,0xbf, + 0x00,0xff, + 0x9f,0x7f, + 0x00,0xff, + 0x3f,0xff, + 0x00,0xff, + 0x7f,0xff, + 0x00,0xff, + 0x00,0xea, + 0x00,0xff, + 0xd5,0xff, + 0x00,0xff, + 0xaa,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xfd,0xff, + 0x00,0xff, + 0xfe,0xff, + 0x00,0xff, + 0x7f,0xff, + 0x00,0xff, + 0x3f,0xff, + 0x00,0xff, + 0x5e,0xbf, + 0x00,0xff, + 0xad,0xde, + 0x00,0xff, + 0xc0,0xff, + 0x00,0xff, + 0x00,0xeb, + 0x00,0xff, + 0x5d,0xf7, + 0x00,0xff, + 0xaa,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x41,0xff, + 0x00,0xff, + 0xfb,0xff, + 0x00,0xff, + 0xf5,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x90,0xff, + 0x00,0xff, + 0xda,0xff, + 0x00,0xff, + 0xd5,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xc3,0x52, + 0xff,0xff, + 0xc3,0x66, + 0xff,0xff, + 0xc3,0x52, + 0xff,0xff, + 0xc3,0x66, + 0xff,0xff, + 0xc3,0x52, + 0xff,0xff, + 0xc3,0x66, + 0xff,0xff, + 0xc3,0x52, + 0xff,0xff, + 0xc3,0x66, + 0xff,0xff, + 0x01,0xff, + 0x00,0xff, + 0x0b,0xff, + 0x00,0xff, + 0x05,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x10,0xff, + 0x00,0xff, + 0xb0,0xff, + 0x00,0xff, + 0x55,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0xff, + 0xff,0xff, + 0x00,0x55, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0xaa, + 0xff,0xff, + 0xaa,0x55, + 0xff,0xff, + 0xff,0xaa, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xfe,0xfe, + 0x00,0xff, + 0xfe,0xfc, + 0x00,0xff, + 0xfc,0xfc, + 0x00,0xff, + 0xfc,0xf8, + 0x00,0xff, + 0xf8,0xf8, + 0x00,0xff, + 0xf8,0xf0, + 0x00,0xff, + 0xf0,0xf0, + 0x00,0xff, + 0xf0,0xe0, + 0x00,0xff, + 0xe0,0xe0, + 0x00,0xff, + 0xe0,0xc0, + 0x00,0xff, + 0xc0,0xc0, + 0x00,0xff, + 0xc0,0x80, + 0x00,0xff, + 0x80,0x80, + 0x00,0xff, + 0x80,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x7f,0x7f, + 0x00,0xff, + 0x7f,0x3f, + 0x00,0xff, + 0x3f,0x3f, + 0x00,0xff, + 0x3f,0x1f, + 0x00,0xff, + 0x1f,0x1f, + 0x00,0xff, + 0x1f,0x0f, + 0x00,0xff, + 0x0f,0x0f, + 0x00,0xff, + 0x0f,0x07, + 0x00,0xff, + 0x07,0x07, + 0x00,0xff, + 0x07,0x03, + 0x00,0xff, + 0x03,0x03, + 0x00,0xff, + 0x03,0x01, + 0x00,0xff, + 0x01,0x01, + 0x00,0xff, + 0x01,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xf9,0xf6, + 0x00,0xff, + 0xd4,0xff, + 0x00,0xff, + 0xa8,0xff, + 0x00,0xff, + 0xd0,0x7f, + 0x00,0xff, + 0xea,0x35, + 0x00,0xff, + 0x57,0xa8, + 0x00,0xff, + 0xf8,0x50, + 0x00,0xff, + 0x3c,0xe8, + 0x00,0xff, + 0xfe,0xfe, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xbf,0x3f, + 0x00,0xff, + 0xef,0x0f, + 0x00,0xff, + 0x7f,0x87, + 0x00,0xff, + 0x3f,0xc3, + 0x00,0xff, + 0x3f,0xc3, + 0x00,0xff, + 0xff,0x03, + 0x00,0xff, + 0x1f,0x0f, + 0x00,0xff, + 0x3f,0x1f, + 0x00,0xff, + 0x7f,0x7f, + 0x00,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0xf0, + 0xff,0xff, + 0x0f,0xac, + 0xff,0xff, + 0x03,0x0a, + 0xff,0xff, + 0x33,0x32, + 0xff,0xff, + 0xd3,0xd6, + 0xff,0xff, + 0xeb,0xea, + 0xff,0xff, + 0xf3,0x76, + 0xff,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0x9b,0xff, + 0x00,0xff, + 0xf5,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x0f, + 0xff,0xff, + 0xfc,0x14, + 0xff,0xff, + 0xf8,0x2a, + 0xff,0xff, + 0xf0,0x58, + 0xff,0xff, + 0xe0,0x20, + 0xff,0xff, + 0xe1,0x71, + 0xff,0xff, + 0xc3,0x42, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xbf,0x40, + 0xff,0xff, + 0xe5,0x1a, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x54, + 0xff,0xff, + 0xff,0x2a, + 0xff,0xff, + 0xff,0x7c, + 0xff,0xff, + 0xe7,0x6e, + 0xff,0xff, + 0xc3,0x42, + 0xff,0xff, + 0xe3,0x6a, + 0xff,0xff, + 0xc3,0x42, + 0xff,0xff, + 0xe3,0x6a, + 0xff,0xff, + 0xe3,0x6a, + 0xff,0xff, + 0xc3,0x42, + 0xff,0xff, + 0xe3,0x6a, + 0xff,0xff, + 0xc3,0x42, + 0xff,0xff, + 0xe7,0x6e, + 0xff,0xff, + 0xff,0x7c, + 0xff,0xff, + 0xff,0x2a, + 0xff,0xff, + 0xff,0x54, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xd5,0x2a, + 0xff,0xff, + 0xbf,0x40, + 0xff,0xff, + 0xe5,0x1a, + 0xff,0xff, + 0xbb,0x44, + 0xff,0xff, + 0xfd,0x02, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xf9,0x06, + 0xff,0xff, + 0xbd,0x42, + 0xff,0xff, + 0xef,0x10, + 0xff,0xff, + 0xaf,0x50, + 0xff,0xff, + 0xf5,0x0a, + 0xff,0xff, + 0xbf,0x40, + 0xff,0xff, + 0x9f,0x60, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0x87,0x78, + 0xff,0xff, + 0x7f,0x80, + 0xff,0xff, + 0xbd,0x42, + 0xff,0xff, + 0x1d,0xe2, + 0xff,0xff, + 0x2d,0xd2, + 0xff,0xff, + 0x97,0x68, + 0xff,0xff, + 0x05,0xfa, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0x9f,0x60, + 0xff,0xff, + 0x45,0xba, + 0xff,0xff, + 0xa5,0x5a, + 0xff,0xff, + 0x57,0xa8, + 0xff,0xff, + 0xaf,0x50, + 0xff,0xff, + 0xfd,0x02, + 0xff,0xff, + 0x31,0xce, + 0xff,0xff, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x02, + 0x00,0x00, + 0xdf,0x20, + 0x00,0x00, + 0xaf,0x70, + 0x00,0x00, + 0xdf,0x20, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x04, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x02, + 0x00,0x00, + 0xfd,0x07, + 0x00,0x00, + 0xff,0x02, + 0x00,0x00, + 0xdf,0x20, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xdf,0x20, + 0x00,0x00, + 0xfb,0x04, + 0x00,0x00, + 0xf5,0x0a, + 0x00,0x00, + 0xfb,0x04, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0xff, + 0xbb,0x99, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0x9f, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xbf,0x9f, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xbb,0x99, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xf9, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xe7,0x00, + 0x00,0x00, + 0xe7,0x00, + 0x00,0x00, + 0xc3,0x00, + 0x00,0x00, + 0xc3,0x00, + 0x00,0x00, + 0x81,0x00, + 0x00,0x00, + 0x81,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xef,0x00, + 0x00,0x00, + 0xc3,0x00, + 0x00,0x00, + 0xc3,0x00, + 0x00,0x00, + 0xc3,0x00, + 0x00,0x00, + 0x81,0x00, + 0x00,0x00, + 0xa1,0x10, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0xff,0xff, + 0xff,0xff, + 0xaa,0xff, + 0xff,0xff, + 0xef,0xff, + 0xff,0xff, + 0xd5,0xff, + 0xff,0xff, + 0xaa,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x55,0xaa, + 0xff,0xff, + 0x80,0x00, + 0xff,0xff, + 0x9f,0x7f, + 0xff,0xff, + 0x4d,0x3f, + 0xff,0xff, + 0x17,0x7f, + 0xff,0xff, + 0x49,0x3f, + 0xff,0xff, + 0x17,0x7f, + 0xff,0xff, + 0x4d,0x3f, + 0xff,0xff, + 0x17,0x7f, + 0xff,0xff, + 0x4d,0x3f, + 0xff,0xff, + 0xff,0xff, + 0xff,0xff, + 0xab,0xff, + 0xff,0xff, + 0xee,0xff, + 0xff,0xff, + 0x54,0xff, + 0xff,0xff, + 0xaa,0xff, + 0xff,0xff, + 0x00,0xff, + 0xff,0xff, + 0x56,0xa9, + 0xff,0xff, + 0xff,0x00, + 0xff,0xff, + 0xf9,0xfe, + 0xff,0x00, + 0xb2,0xfc, + 0xff,0x00, + 0xe8,0xfe, + 0xff,0x00, + 0x92,0xfc, + 0xff,0x00, + 0xe8,0xfe, + 0xff,0x00, + 0xb2,0xfc, + 0xff,0x00, + 0xe8,0xfe, + 0xff,0x00, + 0xb2,0xfc, + 0xff,0x00, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x3c,0x3c, + 0xff,0x00, + 0x42,0x7e, + 0xff,0x00, + 0xbd,0xd3, + 0xff,0x00, + 0xff,0x91, + 0xff,0x00, + 0xff,0x99, + 0xff,0x00, + 0xff,0x81, + 0xff,0x00, + 0x7e,0x42, + 0xff,0x00, + 0x3c,0x3c, + 0xff,0x00, + 0xff,0xff, + 0x00,0x00, + 0xc0,0xc0, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x9f,0x9f, + 0x00,0x00, + 0x9f,0x9f, + 0x00,0x00, + 0x9f,0x9f, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0xc0,0xc0, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x03,0x03, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x03,0x03, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0xc0,0xc0, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x03,0x03, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0xc3,0xc3, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0x7e,0x7e, + 0x00,0x00, + 0x42,0x7e, + 0x00,0x00, + 0x42,0x7e, + 0x00,0x00, + 0x42,0x7e, + 0x00,0x00, + 0x42,0x7e, + 0x00,0x00, + 0x7e,0x7e, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0x01,0x00, + 0x00,0x00, + 0x7e,0x7c, + 0x00,0x00, + 0x45,0x38, + 0x00,0x00, + 0xaa,0x10, + 0x00,0x00, + 0x56,0x02, + 0x00,0x00, + 0x6a,0x46, + 0x00,0x00, + 0x7e,0x6e, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x8c,0x8c, + 0x00,0x00, + 0x8c,0x8c, + 0x00,0x00, + 0x8e,0x8e, + 0x00,0x00, + 0x8e,0x8e, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0x41,0x41, + 0x00,0x00, + 0x41,0x41, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xc0,0xc0, + 0x00,0x00, + 0x87,0x87, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x8f,0x8f, + 0x00,0x00, + 0x87,0x87, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0x80,0x80, + 0x00,0x00, + 0xc0,0xc0, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x03,0x03, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0xc1,0xc1, + 0x00,0x00, + 0x81,0x81, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x01,0x01, + 0x00,0x00, + 0x03,0x03, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xc7,0xc7, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0x1c,0xff, + 0x00,0x00, + 0x3a,0xe7, + 0x00,0x00, + 0x79,0xf9, + 0x00,0x00, + 0xed,0x9d, + 0x00,0x00, + 0x05,0xe5, + 0x00,0x00, + 0x86,0x87, + 0x00,0x00, + 0x4c,0xcf, + 0x00,0x00, + 0x38,0xff, + 0x00,0x00, + 0xc3,0xff, + 0x00,0x00, + 0x81,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x00,0xff, + 0x00,0x00, + 0x81,0xff, + 0x00,0x00, + 0xc3,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00, + 0xff,0xff, + 0x00,0x00 + }; + + +const uint8_t zgb_sushi_tiles_lit_tile_pals[89] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +}; + +const struct TilesInfo zgb_sushi_tiles_lit = { + .num_frames=89, // num tiles + .data=zgb_sushi_tiles_lit_tiles, // tiles + .num_pals=1, // num palettes + .pals=zgb_sushi_tiles_lit_palettes, // palettes + .color_data=zgb_sushi_tiles_lit_tile_pals, // tile palettes +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_sushi_tiles_lit.h b/gbdk-support/png2asset/testing/ref/zgb_sushi_tiles_lit.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_sushi_tiles_lit_H +#define METASPRITE_zgb_sushi_tiles_lit_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_sushi_tiles_lit_tiles_info; +extern const struct MapInfo zgb_sushi_tiles_lit; + +#endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.