-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8af020
commit 6cf626e
Showing
14 changed files
with
650 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build/ | ||
filesystem/ | ||
*.z64 | ||
*.z64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
TARGET=brew_volley | ||
BUILD_DIR=build | ||
FSYSTEM_DIR=filesystem | ||
include $(N64_INST)/include/n64.mk | ||
|
||
src = main.c | ||
assets_xm = $(wildcard assets/*.xm) | ||
assets_wav = $(wildcard assets/*.wav) | ||
assets_png = $(wildcard assets/*.png) | ||
assets_ttf = $(wildcard assets/*.ttf) | ||
|
||
assets_conv = $(addprefix filesystem/,$(notdir $(assets_xm:%.xm=%.xm64))) \ | ||
$(addprefix filesystem/,$(notdir $(assets_wav:%.wav=%.wav64))) \ | ||
$(addprefix filesystem/,$(notdir $(assets_ttf:%.ttf=%.font64))) \ | ||
$(addprefix filesystem/,$(notdir $(assets_png:%.png=%.sprite))) | ||
|
||
#N64_CFLAGS = -Wno-error | ||
AUDIOCONV_FLAGS ?= | ||
MKSPRITE_FLAGS ?= | ||
|
||
all: $(TARGET).z64 | ||
|
||
filesystem/%.xm64: assets/%.xm | ||
@mkdir -p $(dir $@) | ||
@echo " [AUDIO] $@" | ||
@$(N64_AUDIOCONV) $(AUDIOCONV_FLAGS) -o filesystem $< | ||
|
||
filesystem/%.wav64: assets/%.wav | ||
@mkdir -p $(dir $@) | ||
@echo " [AUDIO] $@" | ||
@$(N64_AUDIOCONV) --wav-compress 1 -o filesystem $< | ||
|
||
filesystem/%.sprite: assets/%.png | ||
@mkdir -p $(dir $@) | ||
@echo " [SPRITE] $@" | ||
@$(N64_MKSPRITE) --format RGBA32 $(MKSPRITE_FLAGS) -o filesystem "$<" | ||
|
||
filesystem/%.font64: assets/%.ttf | ||
@mkdir -p $(dir $@) | ||
@echo " [FONT] $@" | ||
@$(N64_MKFONT) $(MKFONT_FLAGS) -o filesystem "$<" | ||
|
||
filesystem/n64brew.sprite: MKSPRITE_FLAGS=--format RGBA32 --tiles 32,32 | ||
filesystem/background.sprite: MKSPRITE_FLAGS=--format RGBA16 --tiles 32,32 | ||
filesystem/Pacifico.font64: MKFONT_FLAGS+=--size 32 | ||
|
||
$(BUILD_DIR)/$(TARGET).dfs: $(assets_conv) | ||
$(BUILD_DIR)/$(TARGET).elf: $(src:%.c=$(BUILD_DIR)/%.o) | ||
|
||
$(TARGET).z64: N64_ROM_TITLE="N64brew GameJam 4" | ||
$(TARGET).z64: $(BUILD_DIR)/$(TARGET).dfs | ||
|
||
clean: | ||
rm -rf $(BUILD_DIR) $(FSYSTEM_DIR) $(TARGET).z64 | ||
|
||
-include $(wildcard $(BUILD_DIR)/*.d) | ||
|
||
.PHONY: all clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Brew Volley | ||
|
||
This is a modified MULLER Marian's (tfmoe__) entry for the N64brew Game Jam #4 (a.k.a N64brew Summer Game Jam). Released as a Libdragon example with the permission from the author. | ||
|
||
The game should be played with two controllers. | ||
|
||
This example shows how one can easily build a simple game with unstable Libdragon SDK using RDPQ library. | ||
|
||
# Assets attributions | ||
|
||
Music: Be Chillin' by Alexander Nakarada ["(www.serpentsoundstudios.com)"](http://www.serpentsoundstudios.com) Licensed under ["Creative Commons: By Attribution 4.0 License"](http://creativecommons.org/licenses/by/4.0/) | ||
|
||
Background: ["Coconut tree near shore within mountain range" by Elizeu Dias](https://unsplash.com/photos/RN6ts8IZ4_0) Licensed under Unsplash license. | ||
|
||
Code is licensed under Unlicense. | ||
|
||
Everything else in this example is licensed under CC0. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.