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_2.c
1 //AUTOGENERATED FILE FROM png2asset
2 // Conversion args: /nums8x8_map_0_to_39.png -o /zgb_nums_map_2.c -map -use_structs -source_tileset /nums8x8_9_to_0.png
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_2)
11
12 const palette_color_t zgb_nums_map_2_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_2_tiles[480] = {
17 0x00,0x00,0x00,0x00,0x4c,0x00,0x52,0x00,0x52,0x00,0x52,0x00,0x0c,0x00,0x00,0x00,
18 0x00,0x00,0x00,0x00,0x24,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x02,0x00,
19 0x00,0x00,0x40,0x00,0x5e,0x00,0x42,0x00,0x44,0x00,0x48,0x00,0x1e,0x00,0x00,0x00,
20 0x00,0x00,0x00,0x00,0x5c,0x00,0x44,0x00,0x4c,0x00,0x44,0x00,0x5c,0x00,0x00,0x00,
21 0x00,0x00,0x00,0x00,0x0a,0x00,0x2a,0x00,0x2a,0x00,0x2e,0x00,0x22,0x00,0x00,0x00,
22 0x00,0x00,0x00,0x00,0x5c,0x00,0x50,0x00,0x5c,0x00,0x44,0x00,0x5c,0x00,0x00,0x00,
23 0x00,0x00,0x00,0x00,0x5c,0x00,0x50,0x00,0x5c,0x00,0x54,0x00,0x5c,0x00,0x00,0x00,
24 0x00,0x00,0x00,0x00,0x5c,0x00,0x44,0x00,0x48,0x00,0x48,0x00,0x48,0x00,0x00,0x00,
25 0x00,0x00,0x00,0x00,0x48,0x00,0x54,0x00,0x48,0x00,0x54,0x00,0x48,0x00,0x00,0x00,
26 0x00,0x00,0x00,0x00,0x2e,0x00,0x2a,0x00,0x2e,0x00,0x22,0x00,0x22,0x00,0x00,0x00,
27 0x00,0x00,0x00,0x00,0x66,0x00,0x29,0x00,0x49,0x00,0x69,0x00,0x06,0x00,0x00,0x00,
28 0x00,0x00,0x00,0x00,0x72,0x00,0x11,0x00,0x21,0x00,0x31,0x00,0x01,0x00,0x01,0x00,
29 0x00,0x00,0x00,0x00,0x6f,0x00,0x21,0x00,0x42,0x00,0x64,0x00,0x0f,0x00,0x00,0x00,
30 0x00,0x00,0x00,0x00,0x6e,0x00,0x22,0x00,0x46,0x00,0x62,0x00,0x0e,0x00,0x00,0x00,
31 0x00,0x00,0x00,0x00,0x05,0x00,0x65,0x00,0x25,0x00,0x47,0x00,0x61,0x00,0x00,0x00,
32 0x00,0x00,0x00,0x00,0x0e,0x00,0x68,0x00,0x2e,0x00,0x42,0x00,0x6e,0x00,0x00,0x00,
33 0x00,0x00,0x00,0x00,0x0e,0x00,0x68,0x00,0x2e,0x00,0x4a,0x00,0x6e,0x00,0x00,0x00,
34 0x00,0x00,0x00,0x00,0x0e,0x00,0x62,0x00,0x24,0x00,0x44,0x00,0x64,0x00,0x00,0x00,
35 0x00,0x00,0x00,0x00,0x04,0x00,0x6a,0x00,0x24,0x00,0x4a,0x00,0x64,0x00,0x00,0x00,
36 0x00,0x00,0x00,0x00,0x07,0x00,0x35,0x00,0x17,0x00,0x21,0x00,0x31,0x00,0x00,0x00,
37 0x00,0x00,0x00,0x00,0x66,0x00,0x29,0x00,0x69,0x00,0x29,0x00,0x66,0x00,0x00,0x00,
38 0x00,0x00,0x00,0x00,0x62,0x00,0x21,0x00,0x61,0x00,0x21,0x00,0x61,0x00,0x01,0x00,
39 0x00,0x00,0x00,0x00,0x6f,0x00,0x21,0x00,0x62,0x00,0x24,0x00,0x6f,0x00,0x00,0x00,
40 0x00,0x00,0x00,0x00,0x6e,0x00,0x22,0x00,0x66,0x00,0x22,0x00,0x6e,0x00,0x00,0x00,
41 0x00,0x00,0x00,0x00,0x65,0x00,0x25,0x00,0x65,0x00,0x27,0x00,0x61,0x00,0x00,0x00,
42 0x00,0x00,0x00,0x00,0x6e,0x00,0x28,0x00,0x6e,0x00,0x22,0x00,0x6e,0x00,0x00,0x00,
43 0x00,0x00,0x00,0x00,0x6e,0x00,0x28,0x00,0x6e,0x00,0x2a,0x00,0x6e,0x00,0x00,0x00,
44 0x00,0x00,0x00,0x00,0x6e,0x00,0x22,0x00,0x64,0x00,0x24,0x00,0x64,0x00,0x00,0x00,
45 0x00,0x00,0x00,0x00,0x64,0x00,0x2a,0x00,0x64,0x00,0x2a,0x00,0x64,0x00,0x00,0x00,
46 0x00,0x00,0x00,0x00,0x37,0x00,0x15,0x00,0x37,0x00,0x11,0x00,0x31,0x00,0x00,0x00
47 };
48
49
50 BANKREF_EXTERN(nums8x8_9_to_0.png)
51 extern const struct TilesInfo nums8x8_9_to_0.png;
52
53 const uint8_t zgb_nums_map_2_tile_pals[30] = {
54 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
55 };
56
57 BANKREF(zgb_nums_map_2_tiles_info)
58 const struct TilesInfo zgb_nums_map_2_tiles_info = {
59 .num_frames=30, // num tiles
60 .data=zgb_nums_map_2_tiles, // tiles
61 .num_pals=1, // num palettes
62 .pals=zgb_nums_map_2_palettes, // palettes
63 .color_data=zgb_nums_map_2_tile_pals, // tile palettes
64 };
65
66 const unsigned char zgb_nums_map_2_map[50] = {
67 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00,
68 0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01,0x00,
69 0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,
70 0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,
71 0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
72 };
73
74 BANKREF_EXTERN(zgb_nums_map_2_tiles_info)
75 const struct MapInfo zgb_nums_map_2 = {
76 .data=zgb_nums_map_2_map, // map
77 .width=10, // width
78 .height=5, // height
79 .attributes=0, // map attributes
80 .tiles_bank=BANK(nums8x8_9_to_0.png), // source tiles bank
81 .tiles=&nums8x8_9_to_0.png, // source tiles info
82 .extra_tiles=&zgb_nums_map_2_tiles_info, // pointer to Tilesinfo struct with map tiles not found in the source tileset
83 .extra_tiles_bank=BANK(zgb_nums_map_2_tiles_info), // bank for above Tilesinfo struct
84 };
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.