Initial Commit

This commit is contained in:
2020-07-11 08:41:14 -05:00
parent 55c0f7f3cd
commit 1478a597cf
176 changed files with 11933 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
AS = lcc -c
CC = lcc -Wa-l -Wl-m
BIN = font.gb
OBJS = font.o
all: $(BIN)
%.s: %.ms
maccer -o $@ $<
$(BIN): $(OBJS)
$(CC) -o $(BIN) $(OBJS)
clean:
rm -rf $(BIN) $(OBJS) *~

View File

@@ -0,0 +1,5 @@
# Font
![](screenshot.png)
Demonstrates how to switch from the default font. Be careful when using/loading fonts as they are loaded into VRAM and may overwrite tiles you're using. Built-in fonts include: font_spect, font_italic, font_ibm, font_min.

View File

@@ -0,0 +1,9 @@
#include <stdio.h>
#include <gb/gb.h>
#include <gb/font.h>
void main() {
font_init(); // Initialize font
font_set(font_load(font_spect)); // Set and load the font
printf("New font!");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB