Initial Commit
This commit is contained in:
16
z_gbdk_playground_original/font/Makefile
Normal file
16
z_gbdk_playground_original/font/Makefile
Normal 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) *~
|
5
z_gbdk_playground_original/font/README.md
Normal file
5
z_gbdk_playground_original/font/README.md
Normal file
@@ -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.
|
9
z_gbdk_playground_original/font/font.c
Normal file
9
z_gbdk_playground_original/font/font.c
Normal 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!");
|
||||
}
|
BIN
z_gbdk_playground_original/font/screenshot.png
Normal file
BIN
z_gbdk_playground_original/font/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user