Merge branch 'develop' into add-rom-patcher
1
.gitignore
vendored
@ -8,6 +8,7 @@
|
||||
# Ignore generated files in the libdragon FS
|
||||
/filesystem/FiraMonoBold.font64
|
||||
/filesystem/*.wav64
|
||||
/filesystem/*.sprite
|
||||
|
||||
# Ignore external development tools
|
||||
/tools/*
|
||||
|
35
Makefile
@ -87,6 +87,30 @@ SOUNDS = \
|
||||
error.wav \
|
||||
settings.wav
|
||||
|
||||
JOYPAD_IMAGES = \
|
||||
joypad_a.png \
|
||||
joypad_b.png \
|
||||
joypad_c_down.png \
|
||||
joypad_c_left.png \
|
||||
joypad_c_right.png \
|
||||
joypad_c_up.png \
|
||||
joypad_d_down.png \
|
||||
joypad_d_left.png \
|
||||
joypad_d_right.png \
|
||||
joypad_d_up.png \
|
||||
joypad_l.png \
|
||||
joypad_r.png \
|
||||
joypad_start.png \
|
||||
joypad_z.png
|
||||
# joypad_j_east.png \
|
||||
# joypad_j_north.png \
|
||||
# joypad_j_northeast.png \
|
||||
# joypad_j_northwest.png \
|
||||
# joypad_j_south.png \
|
||||
# joypad_j_southeast.png \
|
||||
# joypad_j_southwest.png \
|
||||
# joypad_j_west.png \
|
||||
|
||||
OBJS = $(addprefix $(BUILD_DIR)/, $(addsuffix .o,$(basename $(SRCS))))
|
||||
MINIZ_OBJS = $(filter $(BUILD_DIR)/libs/miniz/%.o,$(OBJS))
|
||||
SPNG_OBJS = $(filter $(BUILD_DIR)/libs/libspng/%.o,$(OBJS))
|
||||
@ -94,7 +118,8 @@ DEPS = $(OBJS:.o=.d)
|
||||
|
||||
FILESYSTEM = \
|
||||
$(addprefix $(FILESYSTEM_DIR)/, $(notdir $(FONTS:%.ttf=%.font64))) \
|
||||
$(addprefix $(FILESYSTEM_DIR)/, $(notdir $(SOUNDS:%.wav=%.wav64)))
|
||||
$(addprefix $(FILESYSTEM_DIR)/, $(notdir $(SOUNDS:%.wav=%.wav64))) \
|
||||
$(addprefix $(FILESYSTEM_DIR)/, $(notdir $(JOYPAD_IMAGES:%.png=%.sprite)))
|
||||
|
||||
$(MINIZ_OBJS): N64_CFLAGS+=-DMINIZ_NO_TIME -fcompare-debug-second
|
||||
$(SPNG_OBJS): N64_CFLAGS+=-isystem $(SOURCE_DIR)/libs/miniz -DSPNG_USE_MINIZ -fcompare-debug-second
|
||||
@ -103,14 +128,18 @@ $(FILESYSTEM_DIR)/%.wav64: AUDIOCONV_FLAGS=--wav-compress 1
|
||||
|
||||
$(@info $(shell mkdir -p ./$(FILESYSTEM_DIR) &> /dev/null))
|
||||
|
||||
$(FILESYSTEM_DIR)/%.font64: $(ASSETS_DIR)/%.ttf
|
||||
$(FILESYSTEM_DIR)/%.font64: $(ASSETS_DIR)/fonts/%.ttf
|
||||
@echo " [FONT] $@"
|
||||
@$(N64_MKFONT) $(MKFONT_FLAGS) -o $(FILESYSTEM_DIR) "$<"
|
||||
|
||||
$(FILESYSTEM_DIR)/%.wav64: $(ASSETS_DIR)/%.wav
|
||||
$(FILESYSTEM_DIR)/%.wav64: $(ASSETS_DIR)/sounds/%.wav
|
||||
@echo " [AUDIO] $@"
|
||||
@$(N64_AUDIOCONV) $(AUDIOCONV_FLAGS) -o $(FILESYSTEM_DIR) "$<"
|
||||
|
||||
$(FILESYSTEM_DIR)/%.sprite: $(ASSETS_DIR)/images/joypad/%.png
|
||||
@echo " [SPRITE] $@"
|
||||
@$(N64_MKSPRITE) $(MKSPRITE_FLAGS) -o $(dir $@) "$<"
|
||||
|
||||
$(BUILD_DIR)/$(PROJECT_NAME).dfs: $(FILESYSTEM)
|
||||
|
||||
$(BUILD_DIR)/menu/views/credits.o: .FORCE
|
||||
|
BIN
assets/images/joypad/joypad_a.png
Normal file
After Width: | Height: | Size: 653 B |
BIN
assets/images/joypad/joypad_b.png
Normal file
After Width: | Height: | Size: 649 B |
BIN
assets/images/joypad/joypad_c_down.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
assets/images/joypad/joypad_c_left.png
Normal file
After Width: | Height: | Size: 707 B |
BIN
assets/images/joypad/joypad_c_right.png
Normal file
After Width: | Height: | Size: 715 B |
BIN
assets/images/joypad/joypad_c_up.png
Normal file
After Width: | Height: | Size: 711 B |
BIN
assets/images/joypad/joypad_d_down.png
Normal file
After Width: | Height: | Size: 419 B |
BIN
assets/images/joypad/joypad_d_left.png
Normal file
After Width: | Height: | Size: 423 B |
BIN
assets/images/joypad/joypad_d_right.png
Normal file
After Width: | Height: | Size: 419 B |
BIN
assets/images/joypad/joypad_d_up.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
assets/images/joypad/joypad_l.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
assets/images/joypad/joypad_r.png
Normal file
After Width: | Height: | Size: 424 B |
BIN
assets/images/joypad/joypad_start.png
Normal file
After Width: | Height: | Size: 672 B |
BIN
assets/images/joypad/joypad_z.png
Normal file
After Width: | Height: | Size: 387 B |
@ -1 +1 @@
|
||||
Subproject commit 5295016230d657cd6c7fce5b6ed4a342538e09f5
|
||||
Subproject commit 0c4e388851cabab52f421bff5e75e9dc3ab36c72
|