Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pret/pokeyellow
Browse files Browse the repository at this point in the history
Conflicts:
	.gitignore
  • Loading branch information
luckytyphlosion committed Oct 25, 2015
2 parents 41d6702 + fca114a commit f48a34c
Show file tree
Hide file tree
Showing 46 changed files with 254 additions and 68 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Expand Up @@ -19,6 +19,9 @@
*.1bpp
*.pic

# converted audio data
*.pcm

# swap files for vim
.*.swp

Expand Down Expand Up @@ -53,7 +56,4 @@ replace.sh
.lvimrc

# extras is a submodule, don't include
extras

# contains hack job of some scripts modified for personal use
extras1\
extras/
33 changes: 13 additions & 20 deletions Makefile
Expand Up @@ -16,7 +16,6 @@ cgb_opt = -cjsv -k 01 -l 0x33 -m 0x1b -p 0 -r 03
yellow_opt = $(cgb_opt) -t "POKEMON YELLOW"



# If your default python is 3, you may want to change this to python27.
PYTHON := python

Expand All @@ -33,7 +32,7 @@ compare: yellow

# Clear the default suffixes.
.SUFFIXES:
.SUFFIXES: .asm .o .gbc .png .2bpp .1bpp .pic
.SUFFIXES: .asm .o .gbc .png .2bpp .1bpp .pic .wav .pcm

# Secondary expansion is required for dependency variables in object rules.
.SECONDEXPANSION:
Expand All @@ -44,13 +43,12 @@ compare: yellow
# Filepath shortcuts to avoid overly long recipes.
poketools := extras/pokemontools
gfx := $(PYTHON) $(poketools)/gfx.py
pcm := $(PYTHON) $(poketools)/pcm.py
pic := $(PYTHON) $(poketools)/pic.py
includes := $(PYTHON) $(poketools)/scan_includes.py



# Collect file dependencies for objects in yellow/.
# These aren't provided by rgbds by default, so we have to look for file includes ourselves.
$(foreach ver, $(versions), \
$(eval $(ver)_asm := $(shell find $(ver) -iname '*.asm')) \
$(eval $(ver)_obj := $($(ver)_asm:.asm=.o)) \
Expand All @@ -61,32 +59,27 @@ $(foreach obj, $(all_obj), \
)


# Image files are added to a queue to reduce build time. They're converted when building parent objects.
%.png: ;
%.2bpp: %.png ; $(eval 2bppq += $<) @rm -f $@
%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@
%.png: ;
%.2bpp: %.png ; @$(gfx) 2bpp $<
%.1bpp: %.png ; @$(gfx) 1bpp $<
%.pic: %.2bpp ; @$(pic) compress $<

%.wav: ;
%.pcm: %.wav $(poketools)/pcm.py ; @$(pcm) pcm $<

# Assemble source files into objects.
# Queue payloads are here. These are made silent since there may be hundreds of targets.
# Use rgbasm -h to use halts without nops.
$(all_obj): $$*.asm $$($$*_dep)
@$(gfx) 2bpp $(2bppq); $(eval 2bppq :=)
@$(gfx) 1bpp $(1bppq); $(eval 1bppq :=)
@$(pic) compress $(picq); $(eval picq :=)
rgbasm -h -o $@ $*.asm


# Link objects together to build a rom.

# Make a symfile for debugging.
link = rgblink -n poke$*.sym
link_opt = -n poke$*.sym

# Link objects together to build a rom.
poke%.gbc: $$(%_obj)
$(link) -o $@ $^
rgblink $(link_opt) -o $@ $^
rgbfix $($*_opt) $@


clean:
rm -f $(roms) $(all_obj) poke*.sym
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' \) -exec rm {} +
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' -o -iname '*.pcm' \) -exec rm {} +
Binary file added audio/pikachu_cries/pikachu_cry_1.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_10.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_11.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_12.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_13.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_14.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_15.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_16.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_17.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_18.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_19.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_2.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_20.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_21.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_22.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_23.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_24.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_25.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_26.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_27.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_28.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_29.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_3.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_30.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_31.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_32.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_33.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_34.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_35.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_36.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_37.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_38.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_39.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_4.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_40.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_41.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_42.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_5.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_6.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_7.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_8.wav
Binary file not shown.
Binary file added audio/pikachu_cries/pikachu_cry_9.wav
Binary file not shown.

0 comments on commit f48a34c

Please sign in to comment.