Skip to content

Commit

Permalink
Vertical mode, die roller
Browse files Browse the repository at this point in the history
  • Loading branch information
epbarger committed Jan 22, 2024
1 parent e6e99a3 commit 8881d60
Show file tree
Hide file tree
Showing 77 changed files with 3,092 additions and 54 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ compile.bat: Makefile

$(BINS): $(CSOURCES) $(ASMSOURCES)
$(LCC) -Wm-yn"MAGICLIFE" -Wl-yt0x1B -Wl-ya1 -D_ram_func=0xD000 -o $@ $(CSOURCES) assets/*.c $(ASMSOURCES)
python3 rom_size.py $(BINS)

clean:
rm -f *.o *.lst *.map *.gb *.ihx *.sym *.cdb *.adb *.asm
Expand Down
Binary file modified assets/font0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions assets/font0_v.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
//AUTOGENERATED FILE FROM png2asset

#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>

BANKREF(font0_v)

const palette_color_t font0_v_palettes[4] = {
RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0)

};

const uint8_t font0_v_tiles[336] = {
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x01,0x00,0x0f,0x00,
0x1f,0x00,0x7f,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x3f,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0xf0,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0xe0,0x00,
0xf8,0x00,0xfc,0x00,
0x00,0x00,0x00,0x00,
0x01,0x00,0x03,0x00,
0x03,0x00,0x03,0x00,
0x03,0x00,0x03,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xfc,0x00,0xf8,0x00,
0xf0,0x00,0xf0,0x00,
0xff,0x00,0xf0,0x00,
0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xe0,0x00,0xf8,0x00,
0x7e,0x00,0x1f,0x00,
0x07,0x00,0x03,0x00,
0x03,0x00,0x01,0x00,
0x01,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,
0x80,0x00,0xc0,0x00,
0xc0,0x00,0xc0,0x00,
0xe0,0x00,0xe0,0x00,
0x01,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,
0x01,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,
0xf0,0x00,0xf0,0x00,
0xf8,0x00,0x78,0x00,
0x9e,0x00,0xef,0x00,
0xf3,0x00,0x7c,0x00,
0x03,0x00,0x03,0x00,
0x01,0x00,0x00,0x00,
0x00,0x00,0x80,0x00,
0x00,0x00,0x00,0x00,
0xf8,0x00,0xf8,0x00,
0xe0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x00,
0x01,0x00,0x03,0x00,
0x03,0x00,0x07,0x00,
0x0f,0x00,0x3f,0x00,
0xff,0x00,0xff,0x00,
0xe0,0x00,0xe0,0x00,
0xe0,0x00,0xe0,0x00,
0xc0,0x00,0xc0,0x00,
0x80,0x00,0x80,0x00,
0x3f,0x00,0x1f,0x00,
0x07,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0x7f,0x00,0x07,0x00,
0x00,0x00,0x00,0x00,
0x3f,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xfe,0x00,
0x00,0x00,0x00,0x00,
0xff,0x00,0xfe,0x00,
0xfc,0x00,0xf0,0x00,
0xc0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00
};


const unsigned char font0_v_map[24] = {
0x00,0x01,0x02,0x03,0x04,0x00,
0x05,0x06,0x07,0x08,0x09,0x0a,
0x0b,0x0c,0x0d,0x0e,0x0f,0x10,
0x00,0x11,0x12,0x13,0x14,0x00,
};
27 changes: 27 additions & 0 deletions assets/font0_v.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//AUTOGENERATED FILE FROM png2asset
#ifndef METASPRITE_font0_v_H
#define METASPRITE_font0_v_H

#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>

#define font0_v_TILE_ORIGIN 0
#define font0_v_TILE_W 8
#define font0_v_TILE_H 8
#define font0_v_WIDTH 48
#define font0_v_HEIGHT 32
#define font0_v_TILE_COUNT 21
#define font0_v_PALETTE_COUNT 1
#define font0_v_COLORS_PER_PALETTE 4
#define font0_v_TOTAL_COLORS 4
#define font0_v_MAP_ATTRIBUTES 0

BANKREF_EXTERN(font0_v)

extern const palette_color_t font0_v_palettes[4];
extern const uint8_t font0_v_tiles[336];

extern const unsigned char font0_v_map[24];

#endif
Binary file added assets/font0_v.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions assets/font10_v.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
//AUTOGENERATED FILE FROM png2asset

#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>

BANKREF(font10_v)

const palette_color_t font10_v_palettes[4] = {
RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0)

};

const uint8_t font10_v_tiles[256] = {
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,0x0f,0x00,
0x0f,0x00,0x0f,0x00,
0x03,0x00,0x03,0x00,
0x03,0x00,0x03,0x00,
0x80,0x00,0x80,0x00,
0x80,0x00,0xe0,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,
0x70,0x00,0x7c,0x00,
0x7c,0x00,0xfc,0x00,
0x0f,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xe0,0x00,0x8f,0x00,
0x1e,0x00,0x1e,0x00,
0x7c,0x00,0x7c,0x00,
0x7c,0x00,0x7f,0x00,
0x00,0x00,0xec,0x00,
0x7c,0x00,0x7c,0x00,
0x1f,0x00,0x7e,0x00,
0x7e,0x00,0xef,0x00,
0xfc,0x00,0x60,0x00,
0x00,0x00,0x00,0x00,
0x80,0x00,0x00,0x00,
0x00,0x00,0x80,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x01,0x00,0x0f,0x00,
0x7f,0x00,0x7c,0x00,
0x7c,0x00,0x7c,0x00,
0x1e,0x00,0x0e,0x00,
0x8f,0x00,0xe0,0x00,
0xef,0x00,0x7e,0x00,
0x1f,0x00,0x1f,0x00,
0x7c,0x00,0x6c,0x00,
0xec,0x00,0x00,0x00,
0x80,0x00,0x00,0x00,
0x80,0x00,0x80,0x00,
0x00,0x00,0x00,0x00,
0x60,0x00,0xfc,0x00,
0x0f,0x00,0x0f,0x00,
0x03,0x00,0x03,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xe0,0x00,0x80,0x00,
0x80,0x00,0x80,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xfc,0x00,0x7c,0x00,
0x70,0x00,0x70,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00
};


const unsigned char font10_v_map[24] = {
0x00,0x01,0x02,0x03,0x04,0x00,
0x00,0x05,0x06,0x07,0x08,0x00,
0x00,0x09,0x0a,0x0b,0x0c,0x00,
0x00,0x0d,0x0e,0x00,0x0f,0x00,
};
27 changes: 27 additions & 0 deletions assets/font10_v.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//AUTOGENERATED FILE FROM png2asset
#ifndef METASPRITE_font10_v_H
#define METASPRITE_font10_v_H

#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>

#define font10_v_TILE_ORIGIN 0
#define font10_v_TILE_W 8
#define font10_v_TILE_H 8
#define font10_v_WIDTH 48
#define font10_v_HEIGHT 32
#define font10_v_TILE_COUNT 16
#define font10_v_PALETTE_COUNT 1
#define font10_v_COLORS_PER_PALETTE 4
#define font10_v_TOTAL_COLORS 4
#define font10_v_MAP_ATTRIBUTES 0

BANKREF_EXTERN(font10_v)

extern const palette_color_t font10_v_palettes[4];
extern const uint8_t font10_v_tiles[256];

extern const unsigned char font10_v_map[24];

#endif
Binary file added assets/font10_v.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions assets/font11_v.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
//AUTOGENERATED FILE FROM png2asset

#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>

BANKREF(font11_v)

const palette_color_t font11_v_palettes[4] = {
RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0)

};

const uint8_t font11_v_tiles[256] = {
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,
0x07,0x00,0x0f,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xe0,0x00,0xf0,0x00,
0x0f,0x00,0x0f,0x00,
0x1f,0x00,0x1f,0x00,
0x1f,0x00,0x3f,0x00,
0x3f,0x00,0x3f,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x00,
0x3f,0x00,0x3f,0x00,
0xf0,0x00,0xf8,0x00,
0xf8,0x00,0xf8,0x00,
0xf8,0x00,0xfc,0x00,
0xfc,0x00,0xfc,0x00,
0x3f,0x00,0x3f,0x00,
0x00,0x00,0x0c,0x00,
0x0c,0x00,0x0c,0x00,
0x0c,0x00,0x0c,0x00,
0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x00,
0xff,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x00,
0xfc,0x00,0xfc,0x00,
0x00,0x00,0x30,0x00,
0x30,0x00,0x30,0x00,
0x30,0x00,0x30,0x00,
0x0f,0x00,0x0f,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0xe3,0x00,0xc7,0x00,
0x0f,0x00,0x1f,0x00,
0x3f,0x00,0x3f,0x00,
0x03,0x00,0x03,0x00,
0xc7,0x00,0xe3,0x00,
0xf0,0x00,0xf8,0x00,
0xfc,0x00,0xfc,0x00,
0xc0,0x00,0xc0,0x00,
0xf0,0x00,0xf0,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00
};


const unsigned char font11_v_map[24] = {
0x00,0x01,0x02,0x02,0x03,0x00,
0x00,0x04,0x05,0x06,0x07,0x00,
0x00,0x08,0x09,0x0a,0x0b,0x00,
0x00,0x0c,0x0d,0x0e,0x0f,0x00,
};
27 changes: 27 additions & 0 deletions assets/font11_v.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//AUTOGENERATED FILE FROM png2asset
#ifndef METASPRITE_font11_v_H
#define METASPRITE_font11_v_H

#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>

#define font11_v_TILE_ORIGIN 0
#define font11_v_TILE_W 8
#define font11_v_TILE_H 8
#define font11_v_WIDTH 48
#define font11_v_HEIGHT 32
#define font11_v_TILE_COUNT 16
#define font11_v_PALETTE_COUNT 1
#define font11_v_COLORS_PER_PALETTE 4
#define font11_v_TOTAL_COLORS 4
#define font11_v_MAP_ATTRIBUTES 0

BANKREF_EXTERN(font11_v)

extern const palette_color_t font11_v_palettes[4];
extern const uint8_t font11_v_tiles[256];

extern const unsigned char font11_v_map[24];

#endif
Binary file added assets/font11_v.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8881d60

Please sign in to comment.