git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 8dbc7a407fa92de3ecc2437fb1018e314e82f00f
parent 4eb2a7586c3bde759260560c6ff5ddf5f2ed9920
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Fri, 19 Jul 2024 19:13:06 -0700

Merge pull request #702 from bbbbbr/png2asset_test_update

Png2asset: update some tests for fixed output, add a no pal data test
Diffstat:
Mgbdk-support/png2asset/testing/Makefile4++++
Mgbdk-support/png2asset/testing/ref/color_nums_map_2.c1-
Mgbdk-support/png2asset/testing/ref/color_nums_map_4.c1-
Mgbdk-support/png2asset/testing/ref/color_nums_map_6.c1-
Mgbdk-support/png2asset/testing/ref/color_nums_map_8.c1-
Agbdk-support/png2asset/testing/ref/no_pal_map_test.c57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Agbdk-support/png2asset/testing/ref/no_pal_map_test.h23+++++++++++++++++++++++
Agbdk-support/png2asset/testing/ref/no_pal_map_test_keep_pal_order.c57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Agbdk-support/png2asset/testing/ref/no_pal_map_test_keep_pal_order.h23+++++++++++++++++++++++
Agbdk-support/png2asset/testing/res/no_pal_map_test.png0
10 files changed, 164 insertions(+), 4 deletions(-)

diff --git a/gbdk-support/png2asset/testing/Makefile b/gbdk-support/png2asset/testing/Makefile @@ -144,3 +144,7 @@ generate-assets: $(PNG2ASSET) $(RES)/gameboy.png -c $(OUTDIR)/binout.1.bin -bin -tiles_only $(PNG2ASSET) $(RES)/gameboy.png -c $(OUTDIR)/binout.2.bin -bin -maps_only $(PNG2ASSET) $(RES)/gameboy.png -c $(OUTDIR)/binout.3.bin -bin -maps_only -no_palettes + +# -no_palettes + $(PNG2ASSET) $(RES)/no_pal_map_test.png -c $(OUTDIR)/no_pal_map_test_keep_pal_order.c -noflip -map -keep_palette_order -no_palettes + $(PNG2ASSET) $(RES)/no_pal_map_test.png -c $(OUTDIR)/no_pal_map_test.c -noflip -map -no_palettes diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_2.c b/gbdk-support/png2asset/testing/ref/color_nums_map_2.c @@ -7,7 +7,6 @@ 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) }; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_4.c b/gbdk-support/png2asset/testing/ref/color_nums_map_4.c @@ -7,7 +7,6 @@ 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) }; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_6.c b/gbdk-support/png2asset/testing/ref/color_nums_map_6.c @@ -7,7 +7,6 @@ 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) }; diff --git a/gbdk-support/png2asset/testing/ref/color_nums_map_8.c b/gbdk-support/png2asset/testing/ref/color_nums_map_8.c @@ -7,7 +7,6 @@ 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) diff --git a/gbdk-support/png2asset/testing/ref/no_pal_map_test.c b/gbdk-support/png2asset/testing/ref/no_pal_map_test.c @@ -0,0 +1,57 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(no_pal_map_test) + + +const uint8_t no_pal_map_test_tiles[144] = { + 0x7f,0x00,0xff,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0xff,0x00,0xff,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0xfe,0x00,0xff,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0xc0,0x00,0xc0,0x00, + 0xff,0x00,0x7f,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0xff,0x00,0xff,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0x03,0x00,0x03,0x00, + 0xff,0x00,0xfe,0x00 + }; + + +const unsigned char no_pal_map_test_map[108] = { + 0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x02, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x06,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x08, +}; diff --git a/gbdk-support/png2asset/testing/ref/no_pal_map_test.h b/gbdk-support/png2asset/testing/ref/no_pal_map_test.h @@ -0,0 +1,23 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_no_pal_map_test_H +#define METASPRITE_no_pal_map_test_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define no_pal_map_test_TILE_ORIGIN 0 +#define no_pal_map_test_TILE_W 8 +#define no_pal_map_test_TILE_H 8 +#define no_pal_map_test_WIDTH 144 +#define no_pal_map_test_HEIGHT 48 +#define no_pal_map_test_TILE_COUNT 9 +#define no_pal_map_test_MAP_ATTRIBUTES 0 +extern const unsigned char no_pal_map_test_map[108]; +#define no_pal_map_test_map_attributes no_pal_map_test_map + +BANKREF_EXTERN(no_pal_map_test) + +extern const uint8_t no_pal_map_test_tiles[144]; + +#endif diff --git a/gbdk-support/png2asset/testing/ref/no_pal_map_test_keep_pal_order.c b/gbdk-support/png2asset/testing/ref/no_pal_map_test_keep_pal_order.c @@ -0,0 +1,57 @@ +//AUTOGENERATED FILE FROM png2asset + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +BANKREF(no_pal_map_test_keep_pal_order) + + +const uint8_t no_pal_map_test_keep_pal_order_tiles[144] = { + 0x7f,0x7f,0xff,0xff, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0xff,0xff,0xff,0xff, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0xfe,0xfe,0xff,0xff, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0xc0,0xc0,0xc0,0xc0, + 0xff,0xff,0x7f,0x7f, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00, + 0xff,0xff,0xff,0xff, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0x03,0x03,0x03,0x03, + 0xff,0xff,0xfe,0xfe + }; + + +const unsigned char no_pal_map_test_keep_pal_order_map[108] = { + 0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x02, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x05, + 0x06,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x08, +}; diff --git a/gbdk-support/png2asset/testing/ref/no_pal_map_test_keep_pal_order.h b/gbdk-support/png2asset/testing/ref/no_pal_map_test_keep_pal_order.h @@ -0,0 +1,23 @@ +//AUTOGENERATED FILE FROM png2asset +#ifndef METASPRITE_no_pal_map_test_keep_pal_order_H +#define METASPRITE_no_pal_map_test_keep_pal_order_H + +#include <stdint.h> +#include <gbdk/platform.h> +#include <gbdk/metasprites.h> + +#define no_pal_map_test_keep_pal_order_TILE_ORIGIN 0 +#define no_pal_map_test_keep_pal_order_TILE_W 8 +#define no_pal_map_test_keep_pal_order_TILE_H 8 +#define no_pal_map_test_keep_pal_order_WIDTH 144 +#define no_pal_map_test_keep_pal_order_HEIGHT 48 +#define no_pal_map_test_keep_pal_order_TILE_COUNT 9 +#define no_pal_map_test_keep_pal_order_MAP_ATTRIBUTES 0 +extern const unsigned char no_pal_map_test_keep_pal_order_map[108]; +#define no_pal_map_test_keep_pal_order_map_attributes no_pal_map_test_keep_pal_order_map + +BANKREF_EXTERN(no_pal_map_test_keep_pal_order) + +extern const uint8_t no_pal_map_test_keep_pal_order_tiles[144]; + +#endif diff --git a/gbdk-support/png2asset/testing/res/no_pal_map_test.png b/gbdk-support/png2asset/testing/res/no_pal_map_test.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.