Initial Commit
This commit is contained in:
@@ -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) *~
|
||||
@@ -0,0 +1,5 @@
|
||||
# Font
|
||||
|
||||

|
||||
|
||||
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.
|
||||
@@ -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 |
Reference in New Issue
Block a user