-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
18 changed files
with
650 additions
and
413 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
*.4bpp | ||
|
||
/bin/ | ||
/build/ | ||
|
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,38 @@ | ||
# Add OAMS | ||
# Add sound (music, sfx) | ||
# Game logic | ||
|
||
|
||
PNG_FILES = $(wildcard gfx/*.png) | ||
|
||
PNG_NAMES = $(addprefix build/, $(subst gfx/, ,$(basename $(PNG_FILES)))) | ||
PNG_FILES_MAP = $(addsuffix _map.bin, $(PNG_NAMES)) | ||
PNG_FILES_TILES = $(addsuffix _tiles.bin, $(PNG_NAMES)) | ||
|
||
all: output.gb | ||
|
||
output.gb: main.asm.o | ||
@rgblink -o $@ --map output.map main.asm.o | ||
@rgbfix -v $@ -p 0xff | ||
@echo DONE! | ||
|
||
main.asm.o: main.asm | ||
@echo ASSEMBLING | ||
@rgbasm $^ -o $@ -l -H | ||
|
||
main.asm: $(PNG_FILES_TILES) | ||
@echo a | ||
|
||
build/%_tiles.bin: gfx/%.png | ||
@echo PNG file $*.png changed! | ||
@mkdir -p build | ||
@cp -f $^ build/$*.png | ||
@./bin/png2asset build/$*.png -map -bin -keep_palette_order -noflip | ||
|
||
clean: | ||
@rm -r build | ||
@rm output.gb | ||
@rm main.asm.o | ||
@rm output.map | ||
|
||
.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 |
---|---|---|
@@ -1,3 +1,29 @@ | ||
rgbasm main.asm -o main.asm.o -l -H | ||
rgblink -o output.gb --map output.map main.asm.o | ||
rgbfix -v output.gb -p 0xff | ||
#cp gfx/penguin.png build/penguin.png | ||
#cp gfx/sd.png build/sd.png | ||
|
||
#cp gfx/logo.png build/logo.png | ||
#cp gfx/stars.png build/stars.png | ||
#cp gfx/text.png build/text.png | ||
|
||
#./bin/png2asset gfx/penguin.png -map -bin -keep_palette_order -noflip | ||
#./bin/png2asset gfx/penguin.png -map -bin -keep_palette_order -noflip | ||
|
||
#rgbasm main.asm -o main.asm.o -l -H | ||
#rgblink -o output.gb --map output.map main.asm.o | ||
#rgbfix -v output.gb -p 0xff | ||
|
||
OUTPUT = output.gb | ||
ASM_FILE = main.asm | ||
|
||
all: $(OUTPUT) | ||
|
||
$(OUTPUT): $(ASM_FILE) | ||
rgblink -o $@ --map output.map main.asm.o | ||
rgbfix -v $@ -p 0xff | ||
|
||
$(ASM_FILE): $(PNG_FILES) | ||
rgbasm $@ -o main.asm.o -l -H | ||
|
||
$(PNG_FILES): | ||
cp gfx/$@ build/$@ | ||
./bin/png2asset build/$@ -map -bin -keep_palette_order -noflip |
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 was deleted.
Oops, something went wrong.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.