gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit eeb1efc9ddc23d12fe59e747734cfd67e5ddd309 parent 74aa189d70c4012ab66344e4c2ea386c2959860e Author: bbbbbr <bbbbbr@users.noreply.github.com> Date: Wed, 8 May 2024 01:49:21 -0700 Merge pull request #659 from bbbbbr/tools/png2asset_use_structs_source_tileset png2asset: use structs + source tileset output changes (always include palette data) Diffstat:
72 files changed, 4840 insertions(+), 92 deletions(-)
diff --git a/gbdk-support/png2asset/export.cpp b/gbdk-support/png2asset/export.cpp @@ -44,12 +44,22 @@ string extract_name(string const & name) // This gets called at the start of each export output function void calc_palette_and_tileset_export_size(PNG2AssetData* assetData, exportOptions_t* exportOptions) { - // Default behavior is to skip past/offset however many - // palettes and tiles were present in the source tileset - // - // Note: source_tileset + use_structs for ZGB no longer has special source tile/palette inclusion behavior - exportOptions->color_start = assetData->args->source_total_color_count; - exportOptions->color_count = assetData->image.total_color_count - assetData->args->source_total_color_count; + bool use_structs_with_source_tileset = (assetData->args->has_source_tilesets == true) && (assetData->args->use_structs == true); + + // (source_tileset + use_structs) is a special combination for ZGB + if (use_structs_with_source_tileset) { + // Export all colors, including those from source tileset + exportOptions->color_start = 0; + exportOptions->color_count = (unsigned int)assetData->image.total_color_count; + } else { + // Otherwise default palette export behavior is to skip past/offset + // palettes that were present in the source tileset + exportOptions->color_start = assetData->args->source_total_color_count; + exportOptions->color_count = assetData->image.total_color_count - assetData->args->source_total_color_count; + } + + // Tile export behavior is to always skip past/offset + // tiles that were present in the source tileset exportOptions->tiles_start = assetData->args->source_tileset_size; exportOptions->tiles_count = assetData->tiles.size() - assetData->args->source_tileset_size; @@ -61,9 +71,6 @@ void calc_palette_and_tileset_export_size(PNG2AssetData* assetData, exportOption // exportOptions->has_palette_data_to_export = (assetData->args->include_palettes && // ((assetData->args->has_source_tilesets == false) || (exportOptions->color_count > 0)) ); - bool use_structs_with_source_tileset = (assetData->args->has_source_tilesets == true) && (assetData->args->use_structs == true); - - exportOptions->has_palette_data_to_export = (assetData->args->include_palettes & + exportOptions->has_palette_data_to_export = (assetData->args->include_palettes & ((assetData->args->has_source_tilesets == false) || (exportOptions->color_count > 0) || (use_structs_with_source_tileset == true))); - } diff --git a/gbdk-support/png2asset/export_c_file.cpp b/gbdk-support/png2asset/export_c_file.cpp @@ -43,7 +43,7 @@ static void export_c_metasprite_mode(PNG2AssetData* assetData, FILE* file); static void export_c_map_mode(PNG2AssetData* assetData, FILE* file); static void export_c_zgb_metasprite_struct(PNG2AssetData* assetData, FILE* file); -static void export_c_zgb_palette_data(PNG2AssetData* assetData, FILE* file); +static void export_c_zgb_per_tile_palette_ids(PNG2AssetData* assetData, FILE* file); static void export_c_zgb_tiles_struct(PNG2AssetData* assetData, FILE* file, int output_mode); static void export_c_zgb_map_struct(PNG2AssetData* assetData, FILE* file); @@ -66,6 +66,17 @@ bool export_c_file( PNG2AssetData* assetData) { fprintf(file, "#include <stdint.h>\n"); fprintf(file, "#include <gbdk/platform.h>\n"); fprintf(file, "#include <gbdk/metasprites.h>\n"); + + if (assetData->args->use_structs) { + fprintf(file, "#include \"TilesInfo.h\"\n"); + if (assetData->args->includedMapOrMetaspriteData) { + if (assetData->args->export_as_map) + fprintf(file, "#include \"MapInfo.h\"\n"); + else + fprintf(file, "#include \"MetaSpriteInfo.h\"\n"); + } + } + fprintf(file, "\n"); fprintf(file, "BANKREF(%s)\n\n", assetData->args->data_name.c_str()); @@ -88,7 +99,7 @@ bool export_c_file( PNG2AssetData* assetData) { else { // "-use_structs -tiles_only" case if ((assetData->args->includeTileData) && (assetData->args->use_structs)) { - export_c_zgb_palette_data(assetData, file); + export_c_zgb_per_tile_palette_ids(assetData, file); export_c_zgb_tiles_struct(assetData, file, ZGB_TILES_MODE_TILESONLY); } } @@ -203,7 +214,6 @@ static void export_c_metasprite_mode(PNG2AssetData* assetData, FILE* file) { static void export_c_zgb_metasprite_struct(PNG2AssetData* assetData, FILE* file) { // Export ZGB Metasprite Struct fprintf(file, "\n"); - fprintf(file, "#include \"MetaSpriteInfo.h\"\n"); fprintf(file, "const struct MetaSpriteInfo %s = {\n", assetData->args->data_name.c_str()); fprintf(file, "\t.width=%d," " // width\n", (unsigned int)assetData->args->pivot.width); fprintf(file, "\t.height=%d," " // height\n", (unsigned int)assetData->args->pivot.height); @@ -226,14 +236,13 @@ static void export_c_map_mode(PNG2AssetData* assetData, FILE* file) { // so add the required externs used to reference them in the struct if( (assetData->args->has_source_tilesets)) { fprintf(file, "\n"); - fprintf(file, "#include \"TilesInfo.h\"\n"); fprintf(file, "BANKREF_EXTERN(%s)\n", extract_name(assetData->args->source_tilesets[0]).c_str()); fprintf(file, "extern const struct TilesInfo %s;\n", extract_name(assetData->args->source_tilesets[0]).c_str()); } // Map's own tile data, if any present if(assetData->args->includeTileData) { - export_c_zgb_palette_data(assetData, file); + export_c_zgb_per_tile_palette_ids(assetData, file); export_c_zgb_tiles_struct(assetData, file, ZGB_TILES_MODE_NORMAL); } } @@ -307,7 +316,7 @@ static void export_c_map_mode(PNG2AssetData* assetData, FILE* file) { } -static void export_c_zgb_palette_data(PNG2AssetData* assetData, FILE* file) { +static void export_c_zgb_per_tile_palette_ids(PNG2AssetData* assetData, FILE* file) { //Export tiles pals (if any) if(!assetData->args->use_map_attributes) { @@ -327,8 +336,6 @@ static void export_c_zgb_palette_data(PNG2AssetData* assetData, FILE* file) { static void export_c_zgb_tiles_struct(PNG2AssetData* assetData, FILE* file, int output_mode) { // Export Tiles Info fprintf(file, "\n"); - fprintf(file, "#include \"TilesInfo.h\"\n"); - // ZGB Tiles-only mode doesn't append "_tiles_info" to the struct name and lacks a BANKREF output. if (output_mode == ZGB_TILES_MODE_TILESONLY) { fprintf(file, "const struct TilesInfo %s = {\n", assetData->args->data_name.c_str()); @@ -343,6 +350,7 @@ static void export_c_zgb_tiles_struct(PNG2AssetData* assetData, FILE* file, int fprintf(file, "\t.num_pals=%d," " // num palettes\n", (unsigned int)(exportOpt.color_count / assetData->image.colors_per_pal)); fprintf(file, "\t.pals=%s_palettes," " // palettes\n", assetData->args->data_name.c_str()); + // This var references the output of export_c_zgb_per_tile_palette_ids() if(!assetData->args->use_map_attributes) fprintf(file, "\t.color_data=%s_tile_pals, // tile palettes\n", assetData->args->data_name.c_str()); else @@ -356,6 +364,7 @@ static void export_c_zgb_tiles_struct(PNG2AssetData* assetData, FILE* file, int // "-source_tileset" NOT enabled: // - tile data -> TileInfo struct, point .tiles to it // - .tiles points to TileInfo struct, .extra_tiles is NULL +// - only map tile palettes *not* found in the source tileset will be emitted for .num_pals/.pals // // "-source_tileset" IS enabled // - .tiles -> the external source tileset @@ -364,11 +373,11 @@ static void export_c_zgb_tiles_struct(PNG2AssetData* assetData, FILE* file, int // - if none of those tiles were found then // - map TileInfo will not be emitted // - .extra_tiles == NULL then +// - *all* map tile palettes will be emitted for .num_pals/.pals (those from map and source tileset) // static void export_c_zgb_map_struct(PNG2AssetData* assetData, FILE* file) { //Export Map Info fprintf(file, "\n"); - fprintf(file, "#include \"MapInfo.h\"\n"); if(assetData->args->includeTileData) { fprintf(file, "BANKREF_EXTERN(%s_tiles_info)\n", assetData->args->data_name.c_str()); @@ -391,10 +400,15 @@ static void export_c_zgb_map_struct(PNG2AssetData* assetData, FILE* file) { // If map tiles were found that were not in the source tileset (or entity tileset) // then point ".extra_tiles" to them. Otherwise set it to null to indicate none found. - if (exportOpt.tiles_count > 0) - fprintf(file, "\t.extra_tiles=&%s_tiles_info," " // map tiles info (for map tiles not found in the source tileset) \n", assetData->args->data_name.c_str()); - else - fprintf(file, "\t.extra_tiles=0," " // map tiles info (no map tiles were found that were not in the source tileset)\n"); + if (exportOpt.tiles_count > 0) { + fprintf(file, "\t.extra_tiles=&%s_tiles_info," " // pointer to Tilesinfo struct with map tiles not found in the source tileset\n", assetData->args->data_name.c_str()); + fprintf(file, "\t.extra_tiles_bank=BANK(%s_tiles_info), // bank for above Tilesinfo struct\n", assetData->args->data_name.c_str()); + } + else { + fprintf(file, "\t.extra_tiles=NULL," " // pointer to Tilesinfo struct with map tiles not found in the source tileset (no extra tiles found)\n"); + fprintf(file, "\t.extra_tiles_bank=0," " // bank for above Tilesinfo struct\n"); + } + } else if(assetData->args->includeTileData) { fprintf(file, "\t.tiles_bank=BANK(%s_tiles_info), // tiles bank\n", assetData->args->data_name.c_str()); diff --git a/gbdk-support/png2asset/testing/Makefile b/gbdk-support/png2asset/testing/Makefile @@ -27,6 +27,7 @@ clean: rm -rf $(OUTDIR) reset-ref: + rm -rf $(REF) git checkout $(REF)/* generate-assets: @@ -64,6 +65,25 @@ generate-assets: $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/nums_map_6.c -map -keep_duplicate_tiles -source_tileset $(RES)/nums8x8_9_to_0.png $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/nums_map_7.c -map -keep_duplicate_tiles -entity_tileset $(RES)/nums8x8_30_to_39.png $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/nums_map_8.c -map -keep_duplicate_tiles -source_tileset $(RES)/nums8x8_9_to_0.png -entity_tileset $(RES)/nums8x8_30_to_39.png +# above + color + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_1.c -map -use_map_attributes + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_2.c -map -use_map_attributes -source_tileset $(RES)/color_nums8x8_9_to_0.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_3.c -map -use_map_attributes -entity_tileset $(RES)/color_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_4.c -map -use_map_attributes -source_tileset $(RES)/color_nums8x8_9_to_0.png -entity_tileset $(RES)/color_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_5.c -map -use_map_attributes + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_6.c -map -use_map_attributes -keep_duplicate_tiles -source_tileset $(RES)/color_nums8x8_9_to_0.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_7.c -map -use_map_attributes -keep_duplicate_tiles -entity_tileset $(RES)/color_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_nums_map_8.c -map -use_map_attributes -keep_duplicate_tiles -source_tileset $(RES)/color_nums8x8_9_to_0.png -entity_tileset $(RES)/nums8x8_30_to_39.png +# above + color + indexed + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_1.c -map -use_map_attributes -keep_palette_order + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_2.c -map -use_map_attributes -keep_palette_order -source_tileset $(RES)/color_indexed_nums8x8_9_to_0.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_3.c -map -use_map_attributes -keep_palette_order -entity_tileset $(RES)/color_indexed_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_4.c -map -use_map_attributes -keep_palette_order -source_tileset $(RES)/color_indexed_nums8x8_9_to_0.png -entity_tileset $(RES)/color_indexed_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_5.c -map -use_map_attributes -keep_palette_order + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_6.c -map -use_map_attributes -keep_palette_order -keep_duplicate_tiles -source_tileset $(RES)/color_indexed_nums8x8_9_to_0.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_7.c -map -use_map_attributes -keep_palette_order -keep_duplicate_tiles -entity_tileset $(RES)/color_indexed_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/color_indexed_nums_map_8.c -map -use_map_attributes -keep_palette_order -keep_duplicate_tiles -source_tileset $(RES)/color_indexed_nums8x8_9_to_0.png -entity_tileset $(RES)/nums8x8_30_to_39.png + # ZGB flavor of above $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_nums_map_1.c -map -use_structs $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_nums_map_2.c -map -use_structs -source_tileset $(RES)/nums8x8_9_to_0.png @@ -73,6 +93,16 @@ generate-assets: $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_nums_map_6.c -map -use_structs -keep_duplicate_tiles -source_tileset $(RES)/nums8x8_9_to_0.png $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_nums_map_7.c -map -use_structs -keep_duplicate_tiles -entity_tileset $(RES)/nums8x8_30_to_39.png $(PNG2ASSET) $(RES)/nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_nums_map_8.c -map -use_structs -keep_duplicate_tiles -source_tileset $(RES)/nums8x8_9_to_0.png -entity_tileset $(RES)/nums8x8_30_to_39.png +# ZGB flavor of above + color + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_nums_map_1.c -map -use_map_attributes -use_structs + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_nums_map_2.c -map -use_map_attributes -use_structs -source_tileset $(RES)/color_nums8x8_9_to_0.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_nums_map_3.c -map -use_map_attributes -use_structs -entity_tileset $(RES)/color_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_nums_map_4.c -map -use_map_attributes -use_structs -source_tileset $(RES)/color_nums8x8_9_to_0.png -entity_tileset $(RES)/color_nums8x8_30_to_39.png +# above + color + indexed + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_indexed_nums_map_1.c -map -use_map_attributes -keep_palette_order -use_structs + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_indexed_nums_map_2.c -map -use_map_attributes -keep_palette_order -use_structs -source_tileset $(RES)/color_indexed_nums8x8_9_to_0.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_indexed_nums_map_3.c -map -use_map_attributes -keep_palette_order -use_structs -entity_tileset $(RES)/color_indexed_nums8x8_30_to_39.png + $(PNG2ASSET) $(RES)/color_indexed_nums8x8_map_0_to_39.png -o $(OUTDIR)/zgb_color_indexed_nums_map_4.c -map -use_map_attributes -keep_palette_order -use_structs -source_tileset $(RES)/color_indexed_nums8x8_9_to_0.png -entity_tileset $(RES)/color_indexed_nums8x8_30_to_39.png # keep_palette_order + source_tileset + noflip + map (gbphoto) diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_1.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_1.c @@ -0,0 +1,198 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_1) + +const palette_color_t color_indexed_nums_map_1_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t color_indexed_nums_map_1_tiles[640] = { + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_1_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_indexed_nums_map_1_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_1.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_1.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_1_H +#define METASPRITE_color_indexed_nums_map_1_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_1_TILE_ORIGIN 0 +#define color_indexed_nums_map_1_TILE_W 8 +#define color_indexed_nums_map_1_TILE_H 8 +#define color_indexed_nums_map_1_WIDTH 80 +#define color_indexed_nums_map_1_HEIGHT 40 +#define color_indexed_nums_map_1_TILE_COUNT 40 +#define color_indexed_nums_map_1_PALETTE_COUNT 4 +#define color_indexed_nums_map_1_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_1_TOTAL_COLORS 16 +#define color_indexed_nums_map_1_MAP_ATTRIBUTES color_indexed_nums_map_1_map_attributes +#define color_indexed_nums_map_1_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_1_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_1_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_1_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_1_map[50]; +extern const unsigned char color_indexed_nums_map_1_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_1) + +extern const palette_color_t color_indexed_nums_map_1_palettes[16]; +extern const uint8_t color_indexed_nums_map_1_tiles[640]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_2.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_2.c @@ -0,0 +1,148 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_2) + + +const uint8_t color_indexed_nums_map_2_tiles[480] = { + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_2_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_indexed_nums_map_2_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_2.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_2.h @@ -0,0 +1,30 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_2_H +#define METASPRITE_color_indexed_nums_map_2_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_2_TILE_ORIGIN 0 +#define color_indexed_nums_map_2_TILE_W 8 +#define color_indexed_nums_map_2_TILE_H 8 +#define color_indexed_nums_map_2_WIDTH 80 +#define color_indexed_nums_map_2_HEIGHT 40 +#define color_indexed_nums_map_2_TILE_COUNT 30 +#define color_indexed_nums_map_2_PALETTE_COUNT 4 +#define color_indexed_nums_map_2_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_2_TOTAL_COLORS 16 +#define color_indexed_nums_map_2_MAP_ATTRIBUTES color_indexed_nums_map_2_map_attributes +#define color_indexed_nums_map_2_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_2_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_2_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_2_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_2_map[50]; +extern const unsigned char color_indexed_nums_map_2_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_2) + +extern const uint8_t color_indexed_nums_map_2_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_3.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_3.c @@ -0,0 +1,158 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_3) + +const palette_color_t color_indexed_nums_map_3_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t color_indexed_nums_map_3_tiles[480] = { + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_3_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char color_indexed_nums_map_3_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_3.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_3.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_3_H +#define METASPRITE_color_indexed_nums_map_3_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_3_TILE_ORIGIN 0 +#define color_indexed_nums_map_3_TILE_W 8 +#define color_indexed_nums_map_3_TILE_H 8 +#define color_indexed_nums_map_3_WIDTH 80 +#define color_indexed_nums_map_3_HEIGHT 40 +#define color_indexed_nums_map_3_TILE_COUNT 30 +#define color_indexed_nums_map_3_PALETTE_COUNT 4 +#define color_indexed_nums_map_3_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_3_TOTAL_COLORS 16 +#define color_indexed_nums_map_3_MAP_ATTRIBUTES color_indexed_nums_map_3_map_attributes +#define color_indexed_nums_map_3_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_3_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_3_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_3_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_3_map[50]; +extern const unsigned char color_indexed_nums_map_3_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_3) + +extern const palette_color_t color_indexed_nums_map_3_palettes[16]; +extern const uint8_t color_indexed_nums_map_3_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_4.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_4.c @@ -0,0 +1,108 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_4) + + +const uint8_t color_indexed_nums_map_4_tiles[320] = { + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_4_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char color_indexed_nums_map_4_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_4.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_4.h @@ -0,0 +1,30 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_4_H +#define METASPRITE_color_indexed_nums_map_4_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_4_TILE_ORIGIN 0 +#define color_indexed_nums_map_4_TILE_W 8 +#define color_indexed_nums_map_4_TILE_H 8 +#define color_indexed_nums_map_4_WIDTH 80 +#define color_indexed_nums_map_4_HEIGHT 40 +#define color_indexed_nums_map_4_TILE_COUNT 20 +#define color_indexed_nums_map_4_PALETTE_COUNT 4 +#define color_indexed_nums_map_4_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_4_TOTAL_COLORS 16 +#define color_indexed_nums_map_4_MAP_ATTRIBUTES color_indexed_nums_map_4_map_attributes +#define color_indexed_nums_map_4_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_4_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_4_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_4_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_4_map[50]; +extern const unsigned char color_indexed_nums_map_4_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_4) + +extern const uint8_t color_indexed_nums_map_4_tiles[320]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_5.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_5.c @@ -0,0 +1,198 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_5) + +const palette_color_t color_indexed_nums_map_5_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t color_indexed_nums_map_5_tiles[640] = { + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_5_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_indexed_nums_map_5_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_5.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_5.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_5_H +#define METASPRITE_color_indexed_nums_map_5_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_5_TILE_ORIGIN 0 +#define color_indexed_nums_map_5_TILE_W 8 +#define color_indexed_nums_map_5_TILE_H 8 +#define color_indexed_nums_map_5_WIDTH 80 +#define color_indexed_nums_map_5_HEIGHT 40 +#define color_indexed_nums_map_5_TILE_COUNT 40 +#define color_indexed_nums_map_5_PALETTE_COUNT 4 +#define color_indexed_nums_map_5_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_5_TOTAL_COLORS 16 +#define color_indexed_nums_map_5_MAP_ATTRIBUTES color_indexed_nums_map_5_map_attributes +#define color_indexed_nums_map_5_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_5_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_5_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_5_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_5_map[50]; +extern const unsigned char color_indexed_nums_map_5_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_5) + +extern const palette_color_t color_indexed_nums_map_5_palettes[16]; +extern const uint8_t color_indexed_nums_map_5_tiles[640]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_6.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_6.c @@ -0,0 +1,148 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_6) + + +const uint8_t color_indexed_nums_map_6_tiles[480] = { + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_6_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_indexed_nums_map_6_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_6.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_6.h @@ -0,0 +1,30 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_6_H +#define METASPRITE_color_indexed_nums_map_6_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_6_TILE_ORIGIN 0 +#define color_indexed_nums_map_6_TILE_W 8 +#define color_indexed_nums_map_6_TILE_H 8 +#define color_indexed_nums_map_6_WIDTH 80 +#define color_indexed_nums_map_6_HEIGHT 40 +#define color_indexed_nums_map_6_TILE_COUNT 30 +#define color_indexed_nums_map_6_PALETTE_COUNT 4 +#define color_indexed_nums_map_6_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_6_TOTAL_COLORS 16 +#define color_indexed_nums_map_6_MAP_ATTRIBUTES color_indexed_nums_map_6_map_attributes +#define color_indexed_nums_map_6_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_6_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_6_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_6_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_6_map[50]; +extern const unsigned char color_indexed_nums_map_6_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_6) + +extern const uint8_t color_indexed_nums_map_6_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_7.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_7.c @@ -0,0 +1,198 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_7) + +const palette_color_t color_indexed_nums_map_7_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t color_indexed_nums_map_7_tiles[640] = { + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_7_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char color_indexed_nums_map_7_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_7.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_7.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_7_H +#define METASPRITE_color_indexed_nums_map_7_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_7_TILE_ORIGIN 0 +#define color_indexed_nums_map_7_TILE_W 8 +#define color_indexed_nums_map_7_TILE_H 8 +#define color_indexed_nums_map_7_WIDTH 80 +#define color_indexed_nums_map_7_HEIGHT 40 +#define color_indexed_nums_map_7_TILE_COUNT 40 +#define color_indexed_nums_map_7_PALETTE_COUNT 4 +#define color_indexed_nums_map_7_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_7_TOTAL_COLORS 16 +#define color_indexed_nums_map_7_MAP_ATTRIBUTES color_indexed_nums_map_7_map_attributes +#define color_indexed_nums_map_7_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_7_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_7_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_7_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_7_map[50]; +extern const unsigned char color_indexed_nums_map_7_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_7) + +extern const palette_color_t color_indexed_nums_map_7_palettes[16]; +extern const uint8_t color_indexed_nums_map_7_tiles[640]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_8.c b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_8.c @@ -0,0 +1,148 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_indexed_nums_map_8) + + +const uint8_t color_indexed_nums_map_8_tiles[480] = { + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +const unsigned char color_indexed_nums_map_8_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_indexed_nums_map_8_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_8.h b/gbdk-support/png2asset/testing/ref/color_indexed_nums_map_8.h @@ -0,0 +1,30 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_indexed_nums_map_8_H +#define METASPRITE_color_indexed_nums_map_8_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_indexed_nums_map_8_TILE_ORIGIN 0 +#define color_indexed_nums_map_8_TILE_W 8 +#define color_indexed_nums_map_8_TILE_H 8 +#define color_indexed_nums_map_8_WIDTH 80 +#define color_indexed_nums_map_8_HEIGHT 40 +#define color_indexed_nums_map_8_TILE_COUNT 30 +#define color_indexed_nums_map_8_PALETTE_COUNT 4 +#define color_indexed_nums_map_8_COLORS_PER_PALETTE 4 +#define color_indexed_nums_map_8_TOTAL_COLORS 16 +#define color_indexed_nums_map_8_MAP_ATTRIBUTES color_indexed_nums_map_8_map_attributes +#define color_indexed_nums_map_8_MAP_ATTRIBUTES_WIDTH 10 +#define color_indexed_nums_map_8_MAP_ATTRIBUTES_HEIGHT 5 +#define color_indexed_nums_map_8_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_indexed_nums_map_8_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_indexed_nums_map_8_map[50]; +extern const unsigned char color_indexed_nums_map_8_map_attributes[50]; + +BANKREF_EXTERN(color_indexed_nums_map_8) + +extern const uint8_t color_indexed_nums_map_8_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_1.c b/gbdk-support/png2asset/testing/ref/color_nums_map_1.c @@ -0,0 +1,198 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_1) + +const palette_color_t color_nums_map_1_palettes[16] = { + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + , + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_1_tiles[640] = { + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x69,0x00,0x29, + 0x00,0x66,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x9d,0x62,0xde,0x21, + 0x9e,0x61,0xde,0x21, + 0x9e,0x61,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_1_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_nums_map_1_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_1.h b/gbdk-support/png2asset/testing/ref/color_nums_map_1.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_1_H +#define METASPRITE_color_nums_map_1_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_1_TILE_ORIGIN 0 +#define color_nums_map_1_TILE_W 8 +#define color_nums_map_1_TILE_H 8 +#define color_nums_map_1_WIDTH 80 +#define color_nums_map_1_HEIGHT 40 +#define color_nums_map_1_TILE_COUNT 40 +#define color_nums_map_1_PALETTE_COUNT 4 +#define color_nums_map_1_COLORS_PER_PALETTE 4 +#define color_nums_map_1_TOTAL_COLORS 16 +#define color_nums_map_1_MAP_ATTRIBUTES color_nums_map_1_map_attributes +#define color_nums_map_1_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_1_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_1_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_1_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_1_map[50]; +extern const unsigned char color_nums_map_1_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_1) + +extern const palette_color_t color_nums_map_1_palettes[16]; +extern const uint8_t color_nums_map_1_tiles[640]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_2.c b/gbdk-support/png2asset/testing/ref/color_nums_map_2.c @@ -0,0 +1,153 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_2) + +const palette_color_t color_nums_map_2_palettes[4] = { +, + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_2_tiles[480] = { + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x69,0x00,0x29, + 0x00,0x66,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x9d,0x62,0xde,0x21, + 0x9e,0x61,0xde,0x21, + 0x9e,0x61,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_2_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_nums_map_2_map_attributes[50] = { + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_2.h b/gbdk-support/png2asset/testing/ref/color_nums_map_2.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_2_H +#define METASPRITE_color_nums_map_2_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_2_TILE_ORIGIN 0 +#define color_nums_map_2_TILE_W 8 +#define color_nums_map_2_TILE_H 8 +#define color_nums_map_2_WIDTH 80 +#define color_nums_map_2_HEIGHT 40 +#define color_nums_map_2_TILE_COUNT 30 +#define color_nums_map_2_PALETTE_COUNT 4 +#define color_nums_map_2_COLORS_PER_PALETTE 4 +#define color_nums_map_2_TOTAL_COLORS 16 +#define color_nums_map_2_MAP_ATTRIBUTES color_nums_map_2_map_attributes +#define color_nums_map_2_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_2_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_2_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_2_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_2_map[50]; +extern const unsigned char color_nums_map_2_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_2) + +extern const palette_color_t color_nums_map_2_palettes[4]; +extern const uint8_t color_nums_map_2_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_3.c b/gbdk-support/png2asset/testing/ref/color_nums_map_3.c @@ -0,0 +1,158 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_3) + +const palette_color_t color_nums_map_3_palettes[16] = { + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + , + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_3_tiles[480] = { + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_3_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char color_nums_map_3_map_attributes[50] = { + 0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01,0x02,0x02, + 0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01,0x02,0x02, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_3.h b/gbdk-support/png2asset/testing/ref/color_nums_map_3.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_3_H +#define METASPRITE_color_nums_map_3_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_3_TILE_ORIGIN 0 +#define color_nums_map_3_TILE_W 8 +#define color_nums_map_3_TILE_H 8 +#define color_nums_map_3_WIDTH 80 +#define color_nums_map_3_HEIGHT 40 +#define color_nums_map_3_TILE_COUNT 30 +#define color_nums_map_3_PALETTE_COUNT 4 +#define color_nums_map_3_COLORS_PER_PALETTE 4 +#define color_nums_map_3_TOTAL_COLORS 16 +#define color_nums_map_3_MAP_ATTRIBUTES color_nums_map_3_map_attributes +#define color_nums_map_3_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_3_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_3_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_3_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_3_map[50]; +extern const unsigned char color_nums_map_3_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_3) + +extern const palette_color_t color_nums_map_3_palettes[16]; +extern const uint8_t color_nums_map_3_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_4.c b/gbdk-support/png2asset/testing/ref/color_nums_map_4.c @@ -0,0 +1,113 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_4) + +const palette_color_t color_nums_map_4_palettes[4] = { +, + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_4_tiles[320] = { + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_4_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char color_nums_map_4_map_attributes[50] = { + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_4.h b/gbdk-support/png2asset/testing/ref/color_nums_map_4.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_4_H +#define METASPRITE_color_nums_map_4_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_4_TILE_ORIGIN 0 +#define color_nums_map_4_TILE_W 8 +#define color_nums_map_4_TILE_H 8 +#define color_nums_map_4_WIDTH 80 +#define color_nums_map_4_HEIGHT 40 +#define color_nums_map_4_TILE_COUNT 20 +#define color_nums_map_4_PALETTE_COUNT 4 +#define color_nums_map_4_COLORS_PER_PALETTE 4 +#define color_nums_map_4_TOTAL_COLORS 16 +#define color_nums_map_4_MAP_ATTRIBUTES color_nums_map_4_map_attributes +#define color_nums_map_4_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_4_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_4_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_4_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_4_map[50]; +extern const unsigned char color_nums_map_4_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_4) + +extern const palette_color_t color_nums_map_4_palettes[4]; +extern const uint8_t color_nums_map_4_tiles[320]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_5.c b/gbdk-support/png2asset/testing/ref/color_nums_map_5.c @@ -0,0 +1,198 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_5) + +const palette_color_t color_nums_map_5_palettes[16] = { + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + , + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_5_tiles[640] = { + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x69,0x00,0x29, + 0x00,0x66,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x9d,0x62,0xde,0x21, + 0x9e,0x61,0xde,0x21, + 0x9e,0x61,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_5_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_nums_map_5_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_5.h b/gbdk-support/png2asset/testing/ref/color_nums_map_5.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_5_H +#define METASPRITE_color_nums_map_5_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_5_TILE_ORIGIN 0 +#define color_nums_map_5_TILE_W 8 +#define color_nums_map_5_TILE_H 8 +#define color_nums_map_5_WIDTH 80 +#define color_nums_map_5_HEIGHT 40 +#define color_nums_map_5_TILE_COUNT 40 +#define color_nums_map_5_PALETTE_COUNT 4 +#define color_nums_map_5_COLORS_PER_PALETTE 4 +#define color_nums_map_5_TOTAL_COLORS 16 +#define color_nums_map_5_MAP_ATTRIBUTES color_nums_map_5_map_attributes +#define color_nums_map_5_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_5_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_5_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_5_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_5_map[50]; +extern const unsigned char color_nums_map_5_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_5) + +extern const palette_color_t color_nums_map_5_palettes[16]; +extern const uint8_t color_nums_map_5_tiles[640]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_6.c b/gbdk-support/png2asset/testing/ref/color_nums_map_6.c @@ -0,0 +1,153 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_6) + +const palette_color_t color_nums_map_6_palettes[4] = { +, + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_6_tiles[480] = { + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x69,0x00,0x29, + 0x00,0x66,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x9d,0x62,0xde,0x21, + 0x9e,0x61,0xde,0x21, + 0x9e,0x61,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_6_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char color_nums_map_6_map_attributes[50] = { + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_6.h b/gbdk-support/png2asset/testing/ref/color_nums_map_6.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_6_H +#define METASPRITE_color_nums_map_6_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_6_TILE_ORIGIN 0 +#define color_nums_map_6_TILE_W 8 +#define color_nums_map_6_TILE_H 8 +#define color_nums_map_6_WIDTH 80 +#define color_nums_map_6_HEIGHT 40 +#define color_nums_map_6_TILE_COUNT 30 +#define color_nums_map_6_PALETTE_COUNT 4 +#define color_nums_map_6_COLORS_PER_PALETTE 4 +#define color_nums_map_6_TOTAL_COLORS 16 +#define color_nums_map_6_MAP_ATTRIBUTES color_nums_map_6_map_attributes +#define color_nums_map_6_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_6_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_6_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_6_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_6_map[50]; +extern const unsigned char color_nums_map_6_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_6) + +extern const palette_color_t color_nums_map_6_palettes[4]; +extern const uint8_t color_nums_map_6_tiles[480]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_7.c b/gbdk-support/png2asset/testing/ref/color_nums_map_7.c @@ -0,0 +1,198 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_7) + +const palette_color_t color_nums_map_7_palettes[16] = { + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + , + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_7_tiles[640] = { + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_7_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char color_nums_map_7_map_attributes[50] = { + 0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01,0x02,0x02, + 0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01,0x02,0x02, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_7.h b/gbdk-support/png2asset/testing/ref/color_nums_map_7.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_7_H +#define METASPRITE_color_nums_map_7_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_7_TILE_ORIGIN 0 +#define color_nums_map_7_TILE_W 8 +#define color_nums_map_7_TILE_H 8 +#define color_nums_map_7_WIDTH 80 +#define color_nums_map_7_HEIGHT 40 +#define color_nums_map_7_TILE_COUNT 40 +#define color_nums_map_7_PALETTE_COUNT 4 +#define color_nums_map_7_COLORS_PER_PALETTE 4 +#define color_nums_map_7_TOTAL_COLORS 16 +#define color_nums_map_7_MAP_ATTRIBUTES color_nums_map_7_map_attributes +#define color_nums_map_7_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_7_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_7_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_7_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_7_map[50]; +extern const unsigned char color_nums_map_7_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_7) + +extern const palette_color_t color_nums_map_7_palettes[16]; +extern const uint8_t color_nums_map_7_tiles[640]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_8.c b/gbdk-support/png2asset/testing/ref/color_nums_map_8.c @@ -0,0 +1,151 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(color_nums_map_8) + +const palette_color_t color_nums_map_8_palettes[8] = { +, + RGB8(255,255,255), RGB8(255,242, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + , + RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0), RGB8( 0, 0, 0) + +}; + +const uint8_t color_nums_map_8_tiles[464] = { + 0xff,0x00,0xff,0x00, + 0xb3,0x4c,0xad,0x52, + 0xad,0x52,0xad,0x52, + 0xf3,0x0c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x24,0x00,0x22,0x00, + 0x22,0x00,0x22,0x00, + 0x22,0x00,0x02,0x00, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0xff,0x00,0xff,0x00, + 0x99,0x66,0xd6,0x29, + 0xb6,0x49,0x96,0x69, + 0xf9,0x06,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x72,0x00,0x11,0x00, + 0x21,0x00,0x31,0x00, + 0x01,0x00,0x01,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0xff,0x00,0xff,0x00, + 0x99,0x66,0xd6,0x29, + 0x96,0x69,0xd6,0x29, + 0x99,0x66,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +const unsigned char color_nums_map_8_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0xf7,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26, +}; + +const unsigned char color_nums_map_8_map_attributes[50] = { + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x03,0x04,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x04,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x04,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, +}; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_8.h b/gbdk-support/png2asset/testing/ref/color_nums_map_8.h @@ -0,0 +1,31 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_color_nums_map_8_H +#define METASPRITE_color_nums_map_8_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define color_nums_map_8_TILE_ORIGIN 0 +#define color_nums_map_8_TILE_W 8 +#define color_nums_map_8_TILE_H 8 +#define color_nums_map_8_WIDTH 80 +#define color_nums_map_8_HEIGHT 40 +#define color_nums_map_8_TILE_COUNT 29 +#define color_nums_map_8_PALETTE_COUNT 5 +#define color_nums_map_8_COLORS_PER_PALETTE 4 +#define color_nums_map_8_TOTAL_COLORS 20 +#define color_nums_map_8_MAP_ATTRIBUTES color_nums_map_8_map_attributes +#define color_nums_map_8_MAP_ATTRIBUTES_WIDTH 10 +#define color_nums_map_8_MAP_ATTRIBUTES_HEIGHT 5 +#define color_nums_map_8_MAP_ATTRIBUTES_PACKED_WIDTH 10 +#define color_nums_map_8_MAP_ATTRIBUTES_PACKED_HEIGHT 5 +extern const unsigned char color_nums_map_8_map[50]; +extern const unsigned char color_nums_map_8_map_attributes[50]; + +BANKREF_EXTERN(color_nums_map_8) + +extern const palette_color_t color_nums_map_8_palettes[8]; +extern const uint8_t color_nums_map_8_tiles[464]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_1.c b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_1.c @@ -0,0 +1,219 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_indexed_nums_map_1) + +const palette_color_t zgb_color_indexed_nums_map_1_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t zgb_color_indexed_nums_map_1_tiles[640] = { + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +BANKREF(zgb_color_indexed_nums_map_1_tiles_info) +const struct TilesInfo zgb_color_indexed_nums_map_1_tiles_info = { + .num_frames=40, // num tiles + .data=zgb_color_indexed_nums_map_1_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_indexed_nums_map_1_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_indexed_nums_map_1_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char zgb_color_indexed_nums_map_1_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; + +BANKREF_EXTERN(zgb_color_indexed_nums_map_1_tiles_info) +const struct MapInfo zgb_color_indexed_nums_map_1 = { + .data=zgb_color_indexed_nums_map_1_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_indexed_nums_map_1_map_attributes, // map attributes + .tiles_bank=BANK(zgb_color_indexed_nums_map_1_tiles_info), // tiles bank + .tiles=&zgb_color_indexed_nums_map_1_tiles_info, // tiles info +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_1.h b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_1.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_indexed_nums_map_1_H +#define METASPRITE_zgb_color_indexed_nums_map_1_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_indexed_nums_map_1_tiles_info; +extern const struct MapInfo zgb_color_indexed_nums_map_1; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_2.c b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_2.c @@ -0,0 +1,184 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_indexed_nums_map_2) + +const palette_color_t zgb_color_indexed_nums_map_2_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t zgb_color_indexed_nums_map_2_tiles[480] = { + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x69,0xff,0x29, + 0xff,0x66,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x62,0xff,0x21,0xff, + 0x61,0xff,0x21,0xff, + 0x61,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x62,0xff,0x24, + 0xff,0x6f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x66,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x65,0xff,0x25, + 0xff,0x65,0xff,0x27, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x28,0xff, + 0x6e,0xff,0x22,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6e,0xff,0x28, + 0xff,0x6e,0xff,0x2a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x64,0xff,0x24,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x2a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x37,0xff,0x15,0xff, + 0x37,0xff,0x11,0xff, + 0x31,0xff,0x00,0xff + }; + + +BANKREF_EXTERN(color_indexed_nums8x8_9_to_0.png) +extern const struct TilesInfo color_indexed_nums8x8_9_to_0.png; + +BANKREF(zgb_color_indexed_nums_map_2_tiles_info) +const struct TilesInfo zgb_color_indexed_nums_map_2_tiles_info = { + .num_frames=40, // num tiles + .data=zgb_color_indexed_nums_map_2_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_indexed_nums_map_2_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_indexed_nums_map_2_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char zgb_color_indexed_nums_map_2_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; + +BANKREF_EXTERN(zgb_color_indexed_nums_map_2_tiles_info) +const struct MapInfo zgb_color_indexed_nums_map_2 = { + .data=zgb_color_indexed_nums_map_2_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_indexed_nums_map_2_map_attributes, // map attributes + .tiles_bank=BANK(color_indexed_nums8x8_9_to_0.png), // source tiles bank + .tiles=&color_indexed_nums8x8_9_to_0.png, // source tiles info + .extra_tiles=&zgb_color_indexed_nums_map_2_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_color_indexed_nums_map_2_tiles_info), // bank for above Tilesinfo struct +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_2.h b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_2.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_indexed_nums_map_2_H +#define METASPRITE_zgb_color_indexed_nums_map_2_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_indexed_nums_map_2_tiles_info; +extern const struct MapInfo zgb_color_indexed_nums_map_2; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_3.c b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_3.c @@ -0,0 +1,179 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_indexed_nums_map_3) + +const palette_color_t zgb_color_indexed_nums_map_3_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t zgb_color_indexed_nums_map_3_tiles[480] = { + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x24, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x30,0xff, + 0x10,0xff,0x10,0xff, + 0x10,0xff,0x10,0xff, + 0x38,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x04,0xff,0x08, + 0xff,0x10,0xff,0x20, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x18,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x24, + 0xff,0x24,0xff,0x3c, + 0xff,0x04,0xff,0x04, + 0xff,0x04,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x20,0xff,0x3c,0xff, + 0x04,0xff,0x04,0xff, + 0x3c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x20,0xff,0x38, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x04,0xff,0x08,0xff, + 0x08,0xff,0x10,0xff, + 0x20,0xff,0x00,0xff, + 0xff,0x00,0xff,0x3c, + 0xff,0x24,0xff,0x18, + 0xff,0x24,0xff,0x24, + 0xff,0x3c,0xff,0x00, + 0x00,0xff,0x3c,0xff, + 0x24,0xff,0x24,0xff, + 0x1c,0xff,0x04,0xff, + 0x04,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff + }; + + +BANKREF(zgb_color_indexed_nums_map_3_tiles_info) +const struct TilesInfo zgb_color_indexed_nums_map_3_tiles_info = { + .num_frames=30, // num tiles + .data=zgb_color_indexed_nums_map_3_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_indexed_nums_map_3_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_indexed_nums_map_3_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char zgb_color_indexed_nums_map_3_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; + +BANKREF_EXTERN(zgb_color_indexed_nums_map_3_tiles_info) +const struct MapInfo zgb_color_indexed_nums_map_3 = { + .data=zgb_color_indexed_nums_map_3_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_indexed_nums_map_3_map_attributes, // map attributes + .tiles_bank=BANK(zgb_color_indexed_nums_map_3_tiles_info), // tiles bank + .tiles=&zgb_color_indexed_nums_map_3_tiles_info, // tiles info +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_3.h b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_3.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_indexed_nums_map_3_H +#define METASPRITE_zgb_color_indexed_nums_map_3_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_indexed_nums_map_3_tiles_info; +extern const struct MapInfo zgb_color_indexed_nums_map_3; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_4.c b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_4.c @@ -0,0 +1,144 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_indexed_nums_map_4) + +const palette_color_t zgb_color_indexed_nums_map_4_palettes[16] = { + RGB8(253,207,207), RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0) + , + RGB8(187,210,247), RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88) + , + RGB8(190,255,210), RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2) + , + RGB8(253,253,139), RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2) + +}; + +const uint8_t zgb_color_indexed_nums_map_4_tiles[320] = { + 0xff,0x00,0xff,0x00, + 0xff,0x4c,0xff,0x52, + 0xff,0x52,0xff,0x52, + 0xff,0x0c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x24,0xff,0x22,0xff, + 0x22,0xff,0x22,0xff, + 0x22,0xff,0x02,0xff, + 0xff,0x00,0xff,0x40, + 0xff,0x5e,0xff,0x42, + 0xff,0x44,0xff,0x48, + 0xff,0x1e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x4c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0a,0xff,0x2a, + 0xff,0x2a,0xff,0x2e, + 0xff,0x22,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x50,0xff, + 0x5c,0xff,0x44,0xff, + 0x5c,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x5c,0xff,0x50, + 0xff,0x5c,0xff,0x54, + 0xff,0x5c,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x5c,0xff,0x44,0xff, + 0x48,0xff,0x48,0xff, + 0x48,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x54, + 0xff,0x48,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x2e,0xff,0x2a,0xff, + 0x2e,0xff,0x22,0xff, + 0x22,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x66,0xff,0x29, + 0xff,0x49,0xff,0x69, + 0xff,0x06,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x72,0xff,0x11,0xff, + 0x21,0xff,0x31,0xff, + 0x01,0xff,0x01,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x6f,0xff,0x21, + 0xff,0x42,0xff,0x64, + 0xff,0x0f,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x6e,0xff,0x22,0xff, + 0x46,0xff,0x62,0xff, + 0x0e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x05,0xff,0x65, + 0xff,0x25,0xff,0x47, + 0xff,0x61,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x68,0xff, + 0x2e,0xff,0x42,0xff, + 0x6e,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x0e,0xff,0x68, + 0xff,0x2e,0xff,0x4a, + 0xff,0x6e,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x0e,0xff,0x62,0xff, + 0x24,0xff,0x44,0xff, + 0x64,0xff,0x00,0xff, + 0xff,0x00,0xff,0x00, + 0xff,0x04,0xff,0x6a, + 0xff,0x24,0xff,0x4a, + 0xff,0x64,0xff,0x00, + 0x00,0xff,0x00,0xff, + 0x07,0xff,0x35,0xff, + 0x17,0xff,0x21,0xff, + 0x31,0xff,0x00,0xff + }; + + +BANKREF_EXTERN(color_indexed_nums8x8_9_to_0.png) +extern const struct TilesInfo color_indexed_nums8x8_9_to_0.png; + +BANKREF(zgb_color_indexed_nums_map_4_tiles_info) +const struct TilesInfo zgb_color_indexed_nums_map_4_tiles_info = { + .num_frames=30, // num tiles + .data=zgb_color_indexed_nums_map_4_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_indexed_nums_map_4_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_indexed_nums_map_4_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char zgb_color_indexed_nums_map_4_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; + +BANKREF_EXTERN(zgb_color_indexed_nums_map_4_tiles_info) +const struct MapInfo zgb_color_indexed_nums_map_4 = { + .data=zgb_color_indexed_nums_map_4_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_indexed_nums_map_4_map_attributes, // map attributes + .tiles_bank=BANK(color_indexed_nums8x8_9_to_0.png), // source tiles bank + .tiles=&color_indexed_nums8x8_9_to_0.png, // source tiles info + .extra_tiles=&zgb_color_indexed_nums_map_4_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_color_indexed_nums_map_4_tiles_info), // bank for above Tilesinfo struct +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_4.h b/gbdk-support/png2asset/testing/ref/zgb_color_indexed_nums_map_4.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_indexed_nums_map_4_H +#define METASPRITE_zgb_color_indexed_nums_map_4_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_indexed_nums_map_4_tiles_info; +extern const struct MapInfo zgb_color_indexed_nums_map_4; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_1.c b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_1.c @@ -0,0 +1,219 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_nums_map_1) + +const palette_color_t zgb_color_nums_map_1_palettes[16] = { + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + , + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t zgb_color_nums_map_1_tiles[640] = { + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x69,0x00,0x29, + 0x00,0x66,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x9d,0x62,0xde,0x21, + 0x9e,0x61,0xde,0x21, + 0x9e,0x61,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +BANKREF(zgb_color_nums_map_1_tiles_info) +const struct TilesInfo zgb_color_nums_map_1_tiles_info = { + .num_frames=40, // num tiles + .data=zgb_color_nums_map_1_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_nums_map_1_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_nums_map_1_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char zgb_color_nums_map_1_map_attributes[50] = { + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00,0x01,0x01, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, + 0x03,0x03,0x00,0x00,0x01,0x01,0x02,0x02,0x00,0x00, +}; + +BANKREF_EXTERN(zgb_color_nums_map_1_tiles_info) +const struct MapInfo zgb_color_nums_map_1 = { + .data=zgb_color_nums_map_1_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_nums_map_1_map_attributes, // map attributes + .tiles_bank=BANK(zgb_color_nums_map_1_tiles_info), // tiles bank + .tiles=&zgb_color_nums_map_1_tiles_info, // tiles info +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_1.h b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_1.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_nums_map_1_H +#define METASPRITE_zgb_color_nums_map_1_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_nums_map_1_tiles_info; +extern const struct MapInfo zgb_color_nums_map_1; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_2.c b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_2.c @@ -0,0 +1,184 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_nums_map_2) + +const palette_color_t zgb_color_nums_map_2_palettes[16] = { + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + , + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t zgb_color_nums_map_2_tiles[480] = { + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x69,0x00,0x29, + 0x00,0x66,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x9d,0x62,0xde,0x21, + 0x9e,0x61,0xde,0x21, + 0x9e,0x61,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x62,0x00,0x24, + 0x00,0x6f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x99,0x66,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x65,0x00,0x25, + 0x00,0x65,0x00,0x27, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xd7,0x28, + 0x91,0x6e,0xdd,0x22, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x6e,0x00,0x28, + 0x00,0x6e,0x00,0x2a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0x9b,0x64,0xdb,0x24, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x2a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xc8,0x37,0xea,0x15, + 0xc8,0x37,0xee,0x11, + 0xce,0x31,0xff,0x00 + }; + + +BANKREF_EXTERN(color_nums8x8_9_to_0.png) +extern const struct TilesInfo color_nums8x8_9_to_0.png; + +BANKREF(zgb_color_nums_map_2_tiles_info) +const struct TilesInfo zgb_color_nums_map_2_tiles_info = { + .num_frames=40, // num tiles + .data=zgb_color_nums_map_2_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_nums_map_2_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_nums_map_2_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, +}; + +const unsigned char zgb_color_nums_map_2_map_attributes[50] = { + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, +}; + +BANKREF_EXTERN(zgb_color_nums_map_2_tiles_info) +const struct MapInfo zgb_color_nums_map_2 = { + .data=zgb_color_nums_map_2_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_nums_map_2_map_attributes, // map attributes + .tiles_bank=BANK(color_nums8x8_9_to_0.png), // source tiles bank + .tiles=&color_nums8x8_9_to_0.png, // source tiles info + .extra_tiles=&zgb_color_nums_map_2_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_color_nums_map_2_tiles_info), // bank for above Tilesinfo struct +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_2.h b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_2.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_nums_map_2_H +#define METASPRITE_zgb_color_nums_map_2_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_nums_map_2_tiles_info; +extern const struct MapInfo zgb_color_nums_map_2; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_3.c b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_3.c @@ -0,0 +1,179 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_nums_map_3) + +const palette_color_t zgb_color_nums_map_3_palettes[16] = { + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + , + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t zgb_color_nums_map_3_tiles[480] = { + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x24, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xcf,0x30, + 0xef,0x10,0xef,0x10, + 0xef,0x10,0xef,0x10, + 0xc7,0x38,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x04,0x00,0x08, + 0x00,0x10,0x00,0x20, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xe7,0x18, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x24, + 0x00,0x24,0x00,0x3c, + 0x00,0x04,0x00,0x04, + 0x00,0x04,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdf,0x20,0xc3,0x3c, + 0xfb,0x04,0xfb,0x04, + 0xc3,0x3c,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x20,0x00,0x38, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xfb,0x04,0xf7,0x08, + 0xf7,0x08,0xef,0x10, + 0xdf,0x20,0xff,0x00, + 0x00,0x00,0x00,0x3c, + 0x00,0x24,0x00,0x18, + 0x00,0x24,0x00,0x24, + 0x00,0x3c,0x00,0x00, + 0xff,0x00,0xc3,0x3c, + 0xdb,0x24,0xdb,0x24, + 0xe3,0x1c,0xfb,0x04, + 0xfb,0x04,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00 + }; + + +BANKREF(zgb_color_nums_map_3_tiles_info) +const struct TilesInfo zgb_color_nums_map_3_tiles_info = { + .num_frames=30, // num tiles + .data=zgb_color_nums_map_3_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_nums_map_3_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_nums_map_3_map[50] = { + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char zgb_color_nums_map_3_map_attributes[50] = { + 0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01,0x02,0x02, + 0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01,0x02,0x02, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, + 0x00,0x00,0x01,0x01,0x02,0x02,0x03,0x03,0x01,0x01, +}; + +BANKREF_EXTERN(zgb_color_nums_map_3_tiles_info) +const struct MapInfo zgb_color_nums_map_3 = { + .data=zgb_color_nums_map_3_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_nums_map_3_map_attributes, // map attributes + .tiles_bank=BANK(zgb_color_nums_map_3_tiles_info), // tiles bank + .tiles=&zgb_color_nums_map_3_tiles_info, // tiles info +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_3.h b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_3.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_nums_map_3_H +#define METASPRITE_zgb_color_nums_map_3_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_nums_map_3_tiles_info; +extern const struct MapInfo zgb_color_nums_map_3; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_4.c b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_4.c @@ -0,0 +1,144 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" + +BANKREF(zgb_color_nums_map_4) + +const palette_color_t zgb_color_nums_map_4_palettes[16] = { + RGB8( 77,171,255), RGB8( 35,129,235), RGB8( 9, 5, 88), RGB8( 0, 0, 0) + , + RGB8(241,131,131), RGB8(231, 40, 40), RGB8( 76, 0, 0), RGB8( 0, 0, 0) + , + RGB8( 0,237, 22), RGB8( 0,167, 15), RGB8( 10, 59, 2), RGB8( 0, 0, 0) + , + RGB8(255,242, 0), RGB8(179,170, 0), RGB8( 75, 61, 2), RGB8( 0, 0, 0) + +}; + +const uint8_t zgb_color_nums_map_4_tiles[320] = { + 0x00,0x00,0x00,0x00, + 0x00,0x4c,0x00,0x52, + 0x00,0x52,0x00,0x52, + 0x00,0x0c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xdb,0x24,0xdd,0x22, + 0xdd,0x22,0xdd,0x22, + 0xdd,0x22,0xfd,0x02, + 0x00,0x00,0x00,0x40, + 0x00,0x5e,0x00,0x42, + 0x00,0x44,0x00,0x48, + 0x00,0x1e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb3,0x4c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0a,0x00,0x2a, + 0x00,0x2a,0x00,0x2e, + 0x00,0x22,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xaf,0x50, + 0xa3,0x5c,0xbb,0x44, + 0xa3,0x5c,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x5c,0x00,0x50, + 0x00,0x5c,0x00,0x54, + 0x00,0x5c,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xa3,0x5c,0xbb,0x44, + 0xb7,0x48,0xb7,0x48, + 0xb7,0x48,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x54, + 0x00,0x48,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xd1,0x2e,0xd5,0x2a, + 0xd1,0x2e,0xdd,0x22, + 0xdd,0x22,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x66,0x00,0x29, + 0x00,0x49,0x00,0x69, + 0x00,0x06,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x8d,0x72,0xee,0x11, + 0xde,0x21,0xce,0x31, + 0xfe,0x01,0xfe,0x01, + 0x00,0x00,0x00,0x00, + 0x00,0x6f,0x00,0x21, + 0x00,0x42,0x00,0x64, + 0x00,0x0f,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x91,0x6e,0xdd,0x22, + 0xb9,0x46,0x9d,0x62, + 0xf1,0x0e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x05,0x00,0x65, + 0x00,0x25,0x00,0x47, + 0x00,0x61,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x97,0x68, + 0xd1,0x2e,0xbd,0x42, + 0x91,0x6e,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x0e,0x00,0x68, + 0x00,0x2e,0x00,0x4a, + 0x00,0x6e,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf1,0x0e,0x9d,0x62, + 0xdb,0x24,0xbb,0x44, + 0x9b,0x64,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x6a, + 0x00,0x24,0x00,0x4a, + 0x00,0x64,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0xf8,0x07,0xca,0x35, + 0xe8,0x17,0xde,0x21, + 0xce,0x31,0xff,0x00 + }; + + +BANKREF_EXTERN(color_nums8x8_9_to_0.png) +extern const struct TilesInfo color_nums8x8_9_to_0.png; + +BANKREF(zgb_color_nums_map_4_tiles_info) +const struct TilesInfo zgb_color_nums_map_4_tiles_info = { + .num_frames=30, // num tiles + .data=zgb_color_nums_map_4_tiles, // tiles + .num_pals=4, // num palettes + .pals=zgb_color_nums_map_4_palettes, // palettes + .color_data=0 // tile palettes +}; + +const unsigned char zgb_color_nums_map_4_map[50] = { + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00, + 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13, + 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d, + 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, +}; + +const unsigned char zgb_color_nums_map_4_map_attributes[50] = { + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01,0x00,0x00, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, + 0x03,0x03,0x01,0x01,0x00,0x00,0x02,0x02,0x01,0x01, +}; + +BANKREF_EXTERN(zgb_color_nums_map_4_tiles_info) +const struct MapInfo zgb_color_nums_map_4 = { + .data=zgb_color_nums_map_4_map, // map + .width=10, // width + .height=5, // height + .attributes=zgb_color_nums_map_4_map_attributes, // map attributes + .tiles_bank=BANK(color_nums8x8_9_to_0.png), // source tiles bank + .tiles=&color_nums8x8_9_to_0.png, // source tiles info + .extra_tiles=&zgb_color_nums_map_4_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_color_nums_map_4_tiles_info), // bank for above Tilesinfo struct +}; diff --git a/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_4.h b/gbdk-support/png2asset/testing/ref/zgb_color_nums_map_4.h @@ -0,0 +1,15 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_zgb_color_nums_map_4_H +#define METASPRITE_zgb_color_nums_map_4_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#include "TilesInfo.h" +#include "MapInfo.h" + +extern const struct TilesInfo zgb_color_nums_map_4_tiles_info; +extern const struct MapInfo zgb_color_nums_map_4; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/zgb_largemap_1.c b/gbdk-support/png2asset/testing/ref/zgb_largemap_1.c @@ -5,6 +5,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_largemap_1) @@ -963,7 +965,6 @@ const uint8_t zgb_largemap_1_tile_pals[234] = { 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 2, 2, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 2, 3, 3, 2, 2, 3, 3, 2, 2, 2, 2, 3, 3, 3, 0, 0, 2, 2, 3, 3, 3, 1, 1, 1, 1, 3, 2, 2, 3, 3, 2, 2, 1, 1, 1, 1, 2, 2, 3, 3, 1, 1, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 0, 0, 2, 1, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 2, 2, 2, 1, 1, 1, 2, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 3, 3, 1, 1, 3, 3, 3, 3, 3, 3, 2, 2, 2, 3, 1, 1, 3, 3, 1, 2, 2, 3, 3, 1, 1, 3, 3, 2, 2, 1, 1, 1, 1, 3, 3, 3, 0, 0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -#include "TilesInfo.h" BANKREF(zgb_largemap_1_tiles_info) const struct TilesInfo zgb_largemap_1_tiles_info = { .num_frames=234, // num tiles @@ -1042,7 +1043,6 @@ const unsigned char zgb_largemap_1_map[10296] = { 0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x39,0x06,0x06,0x06,0x06,0x06,0x0a,0x0b,0x0a,0x0b,0x0a,0x0b,0x06,0x06,0x0c,0x0d,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x0a,0x0b,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x0a,0x0b,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x00,0x01,0x12,0x13,0x06,0x06,0x02,0x03,0x06,0x06,0x02,0x03,0x02,0x03,0x02,0x03,0x00,0x01,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x05,0x04,0x05,0x04,0x05,0x0c,0x0c,0x0d,0x0c,0x0d,0x0c,0x0c,0x05,0x04,0x05,0x06,0x06,0x06,0x06,0x06,0x05,0x04,0x05,0x05,0x04,0x05,0x0a,0x0b,0x0a,0x0b,0x06,0x06,0x0a,0x0b,0x0a,0x0b,0x0a,0x0b,0x0a,0x0b,0x7b,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x5b, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_largemap_1_tiles_info) const struct MapInfo zgb_largemap_1 = { .data=zgb_largemap_1_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_largemap_2.c b/gbdk-support/png2asset/testing/ref/zgb_largemap_2.c @@ -5,6 +5,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_largemap_2) @@ -3848,7 +3850,6 @@ const uint8_t zgb_largemap_2_tile_pals[239] = { 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, 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, 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 }; -#include "TilesInfo.h" BANKREF(zgb_largemap_2_tiles_info) const struct TilesInfo zgb_largemap_2_tiles_info = { .num_frames=239, // num tiles @@ -3927,7 +3928,6 @@ const unsigned char zgb_largemap_2_map[10296] = { 0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x3b,0x06,0x06,0x06,0x06,0x06,0x0a,0x0b,0x0a,0x0b,0x0a,0x0b,0x06,0x06,0x0c,0x0d,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x0a,0x0b,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x0a,0x0b,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x00,0x01,0x12,0x13,0x06,0x06,0x02,0x03,0x06,0x06,0x02,0x03,0x02,0x03,0x02,0x03,0x00,0x01,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x05,0x04,0x05,0x04,0x05,0x0c,0x0c,0x0d,0x0c,0x0d,0x0c,0x0c,0x05,0x04,0x05,0x06,0x06,0x06,0x06,0x06,0x05,0x04,0x05,0x05,0x04,0x05,0x0a,0x0b,0x0a,0x0b,0x06,0x06,0x0a,0x0b,0x0a,0x0b,0x0a,0x0b,0x0a,0x0b,0x7f,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x5f, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_largemap_2_tiles_info) const struct MapInfo zgb_largemap_2 = { .data=zgb_largemap_2_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_1.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_1.c @@ -3,6 +3,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_1) @@ -179,7 +181,6 @@ const uint8_t zgb_nums_map_1_tile_pals[40] = { 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 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_1_tiles_info) const struct TilesInfo zgb_nums_map_1_tiles_info = { .num_frames=40, // num tiles @@ -197,7 +198,6 @@ const unsigned char zgb_nums_map_1_map[50] = { 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_1_tiles_info) const struct MapInfo zgb_nums_map_1 = { .data=zgb_nums_map_1_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_2.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_2.c @@ -3,11 +3,14 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_2) -const palette_color_t zgb_nums_map_2_palettes[0] = { - +const palette_color_t zgb_nums_map_2_palettes[4] = { + RGB8(255,255,255), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0) + }; const uint8_t zgb_nums_map_2_tiles[480] = { @@ -134,20 +137,18 @@ const uint8_t zgb_nums_map_2_tiles[480] = { }; -#include "TilesInfo.h" -extern const void __bank_nums8x8_9_to_0.png; +BANKREF_EXTERN(nums8x8_9_to_0.png) extern const struct TilesInfo nums8x8_9_to_0.png; const uint8_t zgb_nums_map_2_tile_pals[30] = { , 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 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_2_tiles_info) const struct TilesInfo zgb_nums_map_2_tiles_info = { .num_frames=40, // num tiles .data=zgb_nums_map_2_tiles, // tiles - .num_pals=0, // num palettes + .num_pals=1, // num palettes .pals=zgb_nums_map_2_palettes, // palettes .color_data=zgb_nums_map_2_tile_pals, // tile palettes }; @@ -160,7 +161,6 @@ const unsigned char zgb_nums_map_2_map[50] = { 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_2_tiles_info) const struct MapInfo zgb_nums_map_2 = { .data=zgb_nums_map_2_map, // map @@ -169,5 +169,6 @@ const struct MapInfo zgb_nums_map_2 = { .attributes=0, // map attributes .tiles_bank=BANK(nums8x8_9_to_0.png), // source tiles bank .tiles=&nums8x8_9_to_0.png, // source tiles info - .extra_tiles=&zgb_nums_map_2_tiles_info, // map tiles info (for map tiles not found in the source tileset) + .extra_tiles=&zgb_nums_map_2_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_nums_map_2_tiles_info), // bank for above Tilesinfo struct }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_3.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_3.c @@ -3,6 +3,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_3) @@ -139,7 +141,6 @@ const uint8_t zgb_nums_map_3_tile_pals[30] = { 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 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_3_tiles_info) const struct TilesInfo zgb_nums_map_3_tiles_info = { .num_frames=30, // num tiles @@ -157,7 +158,6 @@ const unsigned char zgb_nums_map_3_map[50] = { 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_3_tiles_info) const struct MapInfo zgb_nums_map_3 = { .data=zgb_nums_map_3_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_4.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_4.c @@ -3,11 +3,14 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_4) -const palette_color_t zgb_nums_map_4_palettes[0] = { - +const palette_color_t zgb_nums_map_4_palettes[4] = { + RGB8(255,255,255), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0) + }; const uint8_t zgb_nums_map_4_tiles[320] = { @@ -94,20 +97,18 @@ const uint8_t zgb_nums_map_4_tiles[320] = { }; -#include "TilesInfo.h" -extern const void __bank_nums8x8_9_to_0.png; +BANKREF_EXTERN(nums8x8_9_to_0.png) extern const struct TilesInfo nums8x8_9_to_0.png; const uint8_t zgb_nums_map_4_tile_pals[20] = { , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_4_tiles_info) const struct TilesInfo zgb_nums_map_4_tiles_info = { .num_frames=30, // num tiles .data=zgb_nums_map_4_tiles, // tiles - .num_pals=0, // num palettes + .num_pals=1, // num palettes .pals=zgb_nums_map_4_palettes, // palettes .color_data=zgb_nums_map_4_tile_pals, // tile palettes }; @@ -120,7 +121,6 @@ const unsigned char zgb_nums_map_4_map[50] = { 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_4_tiles_info) const struct MapInfo zgb_nums_map_4 = { .data=zgb_nums_map_4_map, // map @@ -129,5 +129,6 @@ const struct MapInfo zgb_nums_map_4 = { .attributes=0, // map attributes .tiles_bank=BANK(nums8x8_9_to_0.png), // source tiles bank .tiles=&nums8x8_9_to_0.png, // source tiles info - .extra_tiles=&zgb_nums_map_4_tiles_info, // map tiles info (for map tiles not found in the source tileset) + .extra_tiles=&zgb_nums_map_4_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_nums_map_4_tiles_info), // bank for above Tilesinfo struct }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_5.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_5.c @@ -3,6 +3,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_5) @@ -179,7 +181,6 @@ const uint8_t zgb_nums_map_5_tile_pals[40] = { 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 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_5_tiles_info) const struct TilesInfo zgb_nums_map_5_tiles_info = { .num_frames=40, // num tiles @@ -197,7 +198,6 @@ const unsigned char zgb_nums_map_5_map[50] = { 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_5_tiles_info) const struct MapInfo zgb_nums_map_5 = { .data=zgb_nums_map_5_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_6.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_6.c @@ -3,11 +3,14 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_6) -const palette_color_t zgb_nums_map_6_palettes[0] = { - +const palette_color_t zgb_nums_map_6_palettes[4] = { + RGB8(255,255,255), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0) + }; const uint8_t zgb_nums_map_6_tiles[480] = { @@ -134,20 +137,18 @@ const uint8_t zgb_nums_map_6_tiles[480] = { }; -#include "TilesInfo.h" -extern const void __bank_nums8x8_9_to_0.png; +BANKREF_EXTERN(nums8x8_9_to_0.png) extern const struct TilesInfo nums8x8_9_to_0.png; const uint8_t zgb_nums_map_6_tile_pals[30] = { , 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 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_6_tiles_info) const struct TilesInfo zgb_nums_map_6_tiles_info = { .num_frames=40, // num tiles .data=zgb_nums_map_6_tiles, // tiles - .num_pals=0, // num palettes + .num_pals=1, // num palettes .pals=zgb_nums_map_6_palettes, // palettes .color_data=zgb_nums_map_6_tile_pals, // tile palettes }; @@ -160,7 +161,6 @@ const unsigned char zgb_nums_map_6_map[50] = { 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_6_tiles_info) const struct MapInfo zgb_nums_map_6 = { .data=zgb_nums_map_6_map, // map @@ -169,5 +169,6 @@ const struct MapInfo zgb_nums_map_6 = { .attributes=0, // map attributes .tiles_bank=BANK(nums8x8_9_to_0.png), // source tiles bank .tiles=&nums8x8_9_to_0.png, // source tiles info - .extra_tiles=&zgb_nums_map_6_tiles_info, // map tiles info (for map tiles not found in the source tileset) + .extra_tiles=&zgb_nums_map_6_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_nums_map_6_tiles_info), // bank for above Tilesinfo struct }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_7.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_7.c @@ -3,6 +3,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_7) @@ -179,7 +181,6 @@ const uint8_t zgb_nums_map_7_tile_pals[40] = { 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 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_7_tiles_info) const struct TilesInfo zgb_nums_map_7_tiles_info = { .num_frames=40, // num tiles @@ -197,7 +198,6 @@ const unsigned char zgb_nums_map_7_map[50] = { 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_7_tiles_info) const struct MapInfo zgb_nums_map_7 = { .data=zgb_nums_map_7_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_nums_map_8.c b/gbdk-support/png2asset/testing/ref/zgb_nums_map_8.c @@ -3,11 +3,14 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_nums_map_8) -const palette_color_t zgb_nums_map_8_palettes[0] = { - +const palette_color_t zgb_nums_map_8_palettes[4] = { + RGB8(255,255,255), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0) + }; const uint8_t zgb_nums_map_8_tiles[320] = { @@ -94,20 +97,18 @@ const uint8_t zgb_nums_map_8_tiles[320] = { }; -#include "TilesInfo.h" -extern const void __bank_nums8x8_9_to_0.png; +BANKREF_EXTERN(nums8x8_9_to_0.png) extern const struct TilesInfo nums8x8_9_to_0.png; const uint8_t zgb_nums_map_8_tile_pals[20] = { , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -#include "TilesInfo.h" BANKREF(zgb_nums_map_8_tiles_info) const struct TilesInfo zgb_nums_map_8_tiles_info = { .num_frames=30, // num tiles .data=zgb_nums_map_8_tiles, // tiles - .num_pals=0, // num palettes + .num_pals=1, // num palettes .pals=zgb_nums_map_8_palettes, // palettes .color_data=zgb_nums_map_8_tile_pals, // tile palettes }; @@ -120,7 +121,6 @@ const unsigned char zgb_nums_map_8_map[50] = { 0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_nums_map_8_tiles_info) const struct MapInfo zgb_nums_map_8 = { .data=zgb_nums_map_8_map, // map @@ -129,5 +129,6 @@ const struct MapInfo zgb_nums_map_8 = { .attributes=0, // map attributes .tiles_bank=BANK(nums8x8_9_to_0.png), // source tiles bank .tiles=&nums8x8_9_to_0.png, // source tiles info - .extra_tiles=&zgb_nums_map_8_tiles_info, // map tiles info (for map tiles not found in the source tileset) + .extra_tiles=&zgb_nums_map_8_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset + .extra_tiles_bank=BANK(zgb_nums_map_8_tiles_info), // bank for above Tilesinfo struct }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_sgb_border_1.c b/gbdk-support/png2asset/testing/ref/zgb_sgb_border_1.c @@ -5,6 +5,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_sgb_border_1) @@ -1732,7 +1734,6 @@ const uint8_t zgb_sgb_border_1_tiles[3424] = { }; -#include "TilesInfo.h" BANKREF(zgb_sgb_border_1_tiles_info) const struct TilesInfo zgb_sgb_border_1_tiles_info = { .num_frames=107, // num tiles @@ -1773,7 +1774,6 @@ const unsigned char zgb_sgb_border_1_map[1792] = { 0x00,0x10,0x00,0x10,0x55,0x10,0x56,0x10,0x57,0x10,0x58,0x10,0x59,0x10,0x5a,0x10,0x5b,0x10,0x5c,0x10,0x5d,0x10,0x5e,0x10,0x5f,0x10,0x60,0x10,0x61,0x10,0x62,0x10,0x63,0x10,0x64,0x10,0x65,0x10,0x66,0x10,0x67,0x10,0x68,0x10,0x69,0x10,0x6a,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10, }; -#include "MapInfo.h" BANKREF_EXTERN(zgb_sgb_border_1_tiles_info) const struct MapInfo zgb_sgb_border_1 = { .data=zgb_sgb_border_1_map, // map diff --git a/gbdk-support/png2asset/testing/ref/zgb_sprite_1.c b/gbdk-support/png2asset/testing/ref/zgb_sprite_1.c @@ -5,6 +5,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MetaSpriteInfo.h" BANKREF(zgb_sprite_1) @@ -391,14 +393,13 @@ const metasprite_t* const zgb_sprite_1_metasprites[5] = { zgb_sprite_1_metasprite0, zgb_sprite_1_metasprite1, zgb_sprite_1_metasprite2, zgb_sprite_1_metasprite3, zgb_sprite_1_metasprite4 }; -#include "MetaSpriteInfo.h" const struct MetaSpriteInfo zgb_sprite_1 = { - 32, // width - 24, // height - 56, // num tiles - zgb_sprite_1_tiles, // tiles - 1, // num palettes - zgb_sprite_1_palettes, // CGB palette - 5, // num sprites - zgb_sprite_1_metasprites, // metasprites + .width=32, // width + .height=24, // height + .num_tiles=56, // num tiles + .data=zgb_sprite_1_tiles, // tiles + .num_palettes=1, // num palettes + .palettes=zgb_sprite_1_palettes, // CGB palette + .num_sprites=5, // num sprites + .metasprites=zgb_sprite_1_metasprites, // metasprites }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_sprite_2.c b/gbdk-support/png2asset/testing/ref/zgb_sprite_2.c @@ -5,6 +5,8 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MetaSpriteInfo.h" BANKREF(zgb_sprite_2) @@ -1221,14 +1223,13 @@ const metasprite_t* const zgb_sprite_2_metasprites[5] = { zgb_sprite_2_metasprite0, zgb_sprite_2_metasprite1, zgb_sprite_2_metasprite2, zgb_sprite_2_metasprite3, zgb_sprite_2_metasprite4 }; -#include "MetaSpriteInfo.h" const struct MetaSpriteInfo zgb_sprite_2 = { - 32, // width - 24, // height - 62, // num tiles - zgb_sprite_2_tiles, // tiles - 8, // num palettes - zgb_sprite_2_palettes, // CGB palette - 5, // num sprites - zgb_sprite_2_metasprites, // metasprites + .width=32, // width + .height=24, // height + .num_tiles=62, // num tiles + .data=zgb_sprite_2_tiles, // tiles + .num_palettes=8, // num palettes + .palettes=zgb_sprite_2_palettes, // CGB palette + .num_sprites=5, // num sprites + .metasprites=zgb_sprite_2_metasprites, // metasprites }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_sushi_level07.c b/gbdk-support/png2asset/testing/ref/zgb_sushi_level07.c @@ -5,12 +5,13 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" +#include "MapInfo.h" BANKREF(zgb_sushi_level07) -#include "TilesInfo.h" -extern const void __bank_sushi_tiles; +BANKREF_EXTERN(sushi_tiles) extern const struct TilesInfo sushi_tiles; const unsigned char zgb_sushi_level07_map[4185] = { @@ -61,7 +62,6 @@ const unsigned char zgb_sushi_level07_map[4185] = { 0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05, }; -#include "MapInfo.h" const struct MapInfo zgb_sushi_level07 = { .data=zgb_sushi_level07_map, // map .width=93, // width @@ -69,5 +69,6 @@ const struct MapInfo zgb_sushi_level07 = { .attributes=0, // map attributes .tiles_bank=BANK(sushi_tiles), // source tiles bank .tiles=&sushi_tiles, // source tiles info - .extra_tiles=0, // map tiles info (no map tiles were found that were not in the source tileset) + .extra_tiles=NULL, // pointer to Tilesinfo struct with map tiles not found in the source tileset (no extra tiles found) + .extra_tiles_bank=0, // bank for above Tilesinfo struct }; diff --git a/gbdk-support/png2asset/testing/ref/zgb_sushi_tiles.c b/gbdk-support/png2asset/testing/ref/zgb_sushi_tiles.c @@ -5,6 +5,7 @@ #include <stdint.h> #include <gbdk/platform.h> #include <gbdk/metasprites.h> +#include "TilesInfo.h" BANKREF(zgb_sushi_tiles) @@ -1448,7 +1449,6 @@ const uint8_t zgb_sushi_tiles_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 }; -#include "TilesInfo.h" const struct TilesInfo zgb_sushi_tiles = { .num_frames=89, // num tiles .data=zgb_sushi_tiles_tiles, // tiles diff --git a/gbdk-support/png2asset/testing/res/color_indexed_nums8x8_30_to_39.png b/gbdk-support/png2asset/testing/res/color_indexed_nums8x8_30_to_39.png Binary files differ. diff --git a/gbdk-support/png2asset/testing/res/color_indexed_nums8x8_9_to_0.png b/gbdk-support/png2asset/testing/res/color_indexed_nums8x8_9_to_0.png Binary files differ. diff --git a/gbdk-support/png2asset/testing/res/color_indexed_nums8x8_map_0_to_39.png b/gbdk-support/png2asset/testing/res/color_indexed_nums8x8_map_0_to_39.png Binary files differ. diff --git a/gbdk-support/png2asset/testing/res/color_nums8x8_30_to_39.png b/gbdk-support/png2asset/testing/res/color_nums8x8_30_to_39.png Binary files differ. diff --git a/gbdk-support/png2asset/testing/res/color_nums8x8_9_to_0.png b/gbdk-support/png2asset/testing/res/color_nums8x8_9_to_0.png Binary files differ. diff --git a/gbdk-support/png2asset/testing/res/color_nums8x8_map_0_to_39.png b/gbdk-support/png2asset/testing/res/color_nums8x8_map_0_to_39.png Binary files differ.
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.