git.y1.nz

gbdk-2020

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

gbdk-support/png2asset/testing/ref/zgb_nums_map_1.c

      1 //AUTOGENERATED FILE FROM png2asset
      2 // Conversion args: /nums8x8_map_0_to_39.png -o /zgb_nums_map_1.c -map -use_structs
      3 
      4 #include <stdint.h>
      5 #include <gbdk/platform.h>
      6 #include <gbdk/metasprites.h>
      7 #include "TilesInfo.h"
      8 #include "MapInfo.h"
      9 
     10 BANKREF(zgb_nums_map_1)
     11 
     12 const palette_color_t zgb_nums_map_1_palettes[4] = {
     13 	RGB8(255,255,255), RGB8(  0,  0,  0), RGB8(  0,  0,  0), RGB8(  0,  0,  0)
     14 	};
     15 
     16 const uint8_t zgb_nums_map_1_tiles[640] = {
     17 	0x00,0x00,0x3c,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x3c,0x00,0x00,0x00,
     18 	0x00,0x00,0x30,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x38,0x00,0x00,0x00,
     19 	0x00,0x00,0x3c,0x00,0x04,0x00,0x08,0x00,0x10,0x00,0x20,0x00,0x3c,0x00,0x00,0x00,
     20 	0x00,0x00,0x3c,0x00,0x04,0x00,0x18,0x00,0x04,0x00,0x04,0x00,0x3c,0x00,0x00,0x00,
     21 	0x00,0x00,0x24,0x00,0x24,0x00,0x3c,0x00,0x04,0x00,0x04,0x00,0x04,0x00,0x00,0x00,
     22 	0x00,0x00,0x3c,0x00,0x20,0x00,0x3c,0x00,0x04,0x00,0x04,0x00,0x3c,0x00,0x00,0x00,
     23 	0x00,0x00,0x3c,0x00,0x20,0x00,0x38,0x00,0x24,0x00,0x24,0x00,0x3c,0x00,0x00,0x00,
     24 	0x00,0x00,0x3c,0x00,0x04,0x00,0x08,0x00,0x08,0x00,0x10,0x00,0x20,0x00,0x00,0x00,
     25 	0x00,0x00,0x3c,0x00,0x24,0x00,0x18,0x00,0x24,0x00,0x24,0x00,0x3c,0x00,0x00,0x00,
     26 	0x00,0x00,0x3c,0x00,0x24,0x00,0x24,0x00,0x1c,0x00,0x04,0x00,0x04,0x00,0x00,0x00,
     27 	0x00,0x00,0x00,0x00,0x4c,0x00,0x52,0x00,0x52,0x00,0x52,0x00,0x0c,0x00,0x00,0x00,
     28 	0x00,0x00,0x00,0x00,0x24,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x02,0x00,
     29 	0x00,0x00,0x40,0x00,0x5e,0x00,0x42,0x00,0x44,0x00,0x48,0x00,0x1e,0x00,0x00,0x00,
     30 	0x00,0x00,0x00,0x00,0x5c,0x00,0x44,0x00,0x4c,0x00,0x44,0x00,0x5c,0x00,0x00,0x00,
     31 	0x00,0x00,0x00,0x00,0x0a,0x00,0x2a,0x00,0x2a,0x00,0x2e,0x00,0x22,0x00,0x00,0x00,
     32 	0x00,0x00,0x00,0x00,0x5c,0x00,0x50,0x00,0x5c,0x00,0x44,0x00,0x5c,0x00,0x00,0x00,
     33 	0x00,0x00,0x00,0x00,0x5c,0x00,0x50,0x00,0x5c,0x00,0x54,0x00,0x5c,0x00,0x00,0x00,
     34 	0x00,0x00,0x00,0x00,0x5c,0x00,0x44,0x00,0x48,0x00,0x48,0x00,0x48,0x00,0x00,0x00,
     35 	0x00,0x00,0x00,0x00,0x48,0x00,0x54,0x00,0x48,0x00,0x54,0x00,0x48,0x00,0x00,0x00,
     36 	0x00,0x00,0x00,0x00,0x2e,0x00,0x2a,0x00,0x2e,0x00,0x22,0x00,0x22,0x00,0x00,0x00,
     37 	0x00,0x00,0x00,0x00,0x66,0x00,0x29,0x00,0x49,0x00,0x69,0x00,0x06,0x00,0x00,0x00,
     38 	0x00,0x00,0x00,0x00,0x72,0x00,0x11,0x00,0x21,0x00,0x31,0x00,0x01,0x00,0x01,0x00,
     39 	0x00,0x00,0x00,0x00,0x6f,0x00,0x21,0x00,0x42,0x00,0x64,0x00,0x0f,0x00,0x00,0x00,
     40 	0x00,0x00,0x00,0x00,0x6e,0x00,0x22,0x00,0x46,0x00,0x62,0x00,0x0e,0x00,0x00,0x00,
     41 	0x00,0x00,0x00,0x00,0x05,0x00,0x65,0x00,0x25,0x00,0x47,0x00,0x61,0x00,0x00,0x00,
     42 	0x00,0x00,0x00,0x00,0x0e,0x00,0x68,0x00,0x2e,0x00,0x42,0x00,0x6e,0x00,0x00,0x00,
     43 	0x00,0x00,0x00,0x00,0x0e,0x00,0x68,0x00,0x2e,0x00,0x4a,0x00,0x6e,0x00,0x00,0x00,
     44 	0x00,0x00,0x00,0x00,0x0e,0x00,0x62,0x00,0x24,0x00,0x44,0x00,0x64,0x00,0x00,0x00,
     45 	0x00,0x00,0x00,0x00,0x04,0x00,0x6a,0x00,0x24,0x00,0x4a,0x00,0x64,0x00,0x00,0x00,
     46 	0x00,0x00,0x00,0x00,0x07,0x00,0x35,0x00,0x17,0x00,0x21,0x00,0x31,0x00,0x00,0x00,
     47 	0x00,0x00,0x00,0x00,0x66,0x00,0x29,0x00,0x69,0x00,0x29,0x00,0x66,0x00,0x00,0x00,
     48 	0x00,0x00,0x00,0x00,0x62,0x00,0x21,0x00,0x61,0x00,0x21,0x00,0x61,0x00,0x01,0x00,
     49 	0x00,0x00,0x00,0x00,0x6f,0x00,0x21,0x00,0x62,0x00,0x24,0x00,0x6f,0x00,0x00,0x00,
     50 	0x00,0x00,0x00,0x00,0x6e,0x00,0x22,0x00,0x66,0x00,0x22,0x00,0x6e,0x00,0x00,0x00,
     51 	0x00,0x00,0x00,0x00,0x65,0x00,0x25,0x00,0x65,0x00,0x27,0x00,0x61,0x00,0x00,0x00,
     52 	0x00,0x00,0x00,0x00,0x6e,0x00,0x28,0x00,0x6e,0x00,0x22,0x00,0x6e,0x00,0x00,0x00,
     53 	0x00,0x00,0x00,0x00,0x6e,0x00,0x28,0x00,0x6e,0x00,0x2a,0x00,0x6e,0x00,0x00,0x00,
     54 	0x00,0x00,0x00,0x00,0x6e,0x00,0x22,0x00,0x64,0x00,0x24,0x00,0x64,0x00,0x00,0x00,
     55 	0x00,0x00,0x00,0x00,0x64,0x00,0x2a,0x00,0x64,0x00,0x2a,0x00,0x64,0x00,0x00,0x00,
     56 	0x00,0x00,0x00,0x00,0x37,0x00,0x15,0x00,0x37,0x00,0x11,0x00,0x31,0x00,0x00,0x00
     57 	};
     58 
     59 
     60 const uint8_t zgb_nums_map_1_tile_pals[40] = {
     61 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
     62 };
     63 
     64 BANKREF(zgb_nums_map_1_tiles_info)
     65 const struct TilesInfo zgb_nums_map_1_tiles_info = {
     66 	.num_frames=40, // num tiles
     67 	.data=zgb_nums_map_1_tiles, // tiles
     68 	.num_pals=1, // num palettes
     69 	.pals=zgb_nums_map_1_palettes, // palettes
     70 	.color_data=zgb_nums_map_1_tile_pals, // tile palettes
     71 };
     72 
     73 const unsigned char zgb_nums_map_1_map[50] = {
     74 	0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
     75 	0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
     76 	0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
     77 	0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
     78 	0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
     79 };
     80 
     81 BANKREF_EXTERN(zgb_nums_map_1_tiles_info)
     82 const struct MapInfo zgb_nums_map_1 = {
     83 	.data=zgb_nums_map_1_map, // map
     84 	.width=10, // width
     85 	.height=5, // height
     86 	.attributes=0, // map attributes
     87 	.tiles_bank=BANK(zgb_nums_map_1_tiles_info), // tiles bank
     88 	.tiles=&zgb_nums_map_1_tiles_info, // tiles info
     89 };

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.