Add music, beach fishing, catching, and selectable creature partners

This commit is contained in:
rory committed 2026-10-28 22:22:27 +00:00
1 parent 3469f2e6dd
commit cb77683a87
24 files changed
+1307 -104

No files matched your search

+4 -2
View File
@@ -4,10 +4,11 @@ CC := $(TOOL_PREFIX)gcc
OBJCOPY := $(TOOL_PREFIX)objcopy
CFLAGS := -mcpu=arm7tdmi -marm -O2 -g -Wall -Wextra -Werror -ffreestanding -fno-builtin -fno-common -Wa,--noexecstack
GAME_SOURCES := source/main.c source/video.c source/scenery.c source/world.c \
source/actors.c source/battle.c source/story.c source/hud.c
source/actors.c source/battle.c source/story.c source/hud.c source/audio.c source/beach.c
GAME_OBJECTS := $(GAME_SOURCES:source/%.c=build/%.o)
TEST_SOURCES := tests/test_game.c tests/test_support.c tests/test_maps.c \
tests/test_story.c tests/test_battle.c tests/test_rendering.c tests/test_movement.c
tests/test_story.c tests/test_battle.c tests/test_rendering.c tests/test_movement.c tests/test_audio.c \
tests/test_catching.c
.PHONY: all play check check-host
all: game.gba
@@ -22,6 +23,7 @@ build/%.o: source/%.c source/game.h | build
$(CC) $(CFLAGS) -c $< -o $@
build/actors.o: source/wild_creatures.h
build/audio.o build/main.o: source/audio.h
build/game.elf: build/start.o $(GAME_OBJECTS) gba.ld
$(CC) -mcpu=arm7tdmi -marm -nostdlib -T gba.ld -Wl,-z,noexecstack -Wl,-Map,build/game.map build/start.o $(GAME_OBJECTS) -lgcc -o $@