Merge remote-tracking branch 'yenatch/png'
8
.gitignore
vendored
|
@ -1,6 +1,3 @@
|
|||
# global label defs are generated
|
||||
globals.asm
|
||||
|
||||
# precompiled python
|
||||
*.pyc
|
||||
|
||||
|
@ -21,6 +18,11 @@ globals.asm
|
|||
# generated
|
||||
*.tx
|
||||
|
||||
# converted image data
|
||||
*.2bpp
|
||||
*.1bpp
|
||||
*.pic
|
||||
|
||||
# swap files for vim
|
||||
.*.swp
|
||||
|
||||
|
|
41
Makefile
|
@ -1,8 +1,16 @@
|
|||
PYTHON := python
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .asm .tx .o .gbc
|
||||
.PHONY: all clean red blue compare
|
||||
.PHONY: all clean red blue compare pngs
|
||||
.PRECIOUS: %.2bpp
|
||||
.SECONDEXPANSION:
|
||||
|
||||
POKEMONTOOLS := extras/pokemontools
|
||||
GFX := $(PYTHON) $(POKEMONTOOLS)/gfx.py
|
||||
PIC := $(PYTHON) $(POKEMONTOOLS)/pic.py
|
||||
INCLUDES := $(PYTHON) $(POKEMONTOOLS)/scan_includes.py
|
||||
PREPROCESS := $(PYTHON) prequeue.py
|
||||
|
||||
TEXTQUEUE :=
|
||||
|
||||
|
@ -23,10 +31,8 @@ OBJS := $(sort $(OBJS))
|
|||
|
||||
ROMS := pokered.gbc pokeblue.gbc
|
||||
|
||||
# generate dependencies for each object
|
||||
$(shell $(foreach obj, $(OBJS), \
|
||||
$(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) extras/pokemontools/scan_includes.py $(obj:.o=.asm))) \
|
||||
))
|
||||
# object dependencies
|
||||
$(shell $(foreach obj, $(OBJS), $(eval $(obj:.o=)_DEPENDENCIES := $(shell $(INCLUDES) $(obj:.o=.asm)))))
|
||||
|
||||
all: $(ROMS)
|
||||
red: pokered.gbc
|
||||
|
@ -36,7 +42,10 @@ compare:
|
|||
clean:
|
||||
rm -f $(ROMS)
|
||||
rm -f $(OBJS)
|
||||
find . -iname '*.tx' -exec rm {} +
|
||||
find . -iname '*.tx' -exec rm {} +
|
||||
find gfx -iname '*.[12]bpp' -exec rm {} +
|
||||
find pic -iname '*.pic' -exec rm {} +
|
||||
find pic -iname '*.2bpp' -exec rm {} +
|
||||
rm -f redrle
|
||||
|
||||
|
||||
|
@ -50,8 +59,14 @@ redrle: extras/redtools/redrle.c
|
|||
@rm -f $@
|
||||
|
||||
$(OBJS): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_DEPENDENCIES))
|
||||
@$(PYTHON) prequeue.py $(TEXTQUEUE)
|
||||
@$(PREPROCESS) $(TEXTQUEUE)
|
||||
@$(eval TEXTQUEUE :=)
|
||||
@$(GFX) 2bpp $(2BPPQUEUE)
|
||||
@$(eval 2BPPQUEUE :=)
|
||||
@$(GFX) 1bpp $(1BPPQUEUE)
|
||||
@$(eval 1BPPQUEUE :=)
|
||||
@$(PIC) compress $(PICQUEUE)
|
||||
@$(eval PICQUEUE :=)
|
||||
rgbasm -o $@ $*.tx
|
||||
|
||||
|
||||
|
@ -65,3 +80,15 @@ pokeblue.gbc: $(BLUE_OBJS)
|
|||
rgblink -n $*.sym -m $*.map -o $@ $^
|
||||
rgbfix $(OPTIONS) -t "POKEMON BLUE" $@
|
||||
|
||||
|
||||
%.2bpp: %.png
|
||||
$(eval 2BPPQUEUE += $<)
|
||||
@rm -f $@
|
||||
%.1bpp: %.png
|
||||
$(eval 1BPPQUEUE += $<)
|
||||
@rm -f $@
|
||||
%.pic: %.2bpp
|
||||
$(eval PICQUEUE += $<)
|
||||
@rm -f $@
|
||||
|
||||
|
||||
|
|
2
extras
|
@ -1 +1 @@
|
|||
Subproject commit 61b83803be9ccdcdcd95b7f8ea7accafab8d4d4d
|
||||
Subproject commit 1840111de5b4c8aa18717d088f0718dbc0d17841
|
BIN
gfx/AB.2bpp
BIN
gfx/AB.png
Normal file
After Width: | Height: | Size: 90 B |
|
@ -1 +0,0 @@
|
|||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
BIN
gfx/ED_tile.png
Normal file
After Width: | Height: | Size: 82 B |
BIN
gfx/attack_anim_1.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
gfx/attack_anim_2.png
Normal file
After Width: | Height: | Size: 999 B |
BIN
gfx/badge_numbers.png
Normal file
After Width: | Height: | Size: 135 B |
BIN
gfx/badges.2bpp
BIN
gfx/badges.w16.png
Normal file
After Width: | Height: | Size: 924 B |
BIN
gfx/battle_hud1.png
Normal file
After Width: | Height: | Size: 100 B |
BIN
gfx/battle_hud2.png
Normal file
After Width: | Height: | Size: 82 B |
BIN
gfx/battle_hud3.png
Normal file
After Width: | Height: | Size: 92 B |
|
@ -1 +0,0 @@
|
|||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
BIN
gfx/battle_transition.png
Normal file
After Width: | Height: | Size: 68 B |
BIN
gfx/blank_leader_names.png
Normal file
After Width: | Height: | Size: 73 B |
BIN
gfx/blue/blueversion.h8.png
Normal file
After Width: | Height: | Size: 136 B |
BIN
gfx/blue/intro_purin_1.6x6.png
Normal file
After Width: | Height: | Size: 366 B |
BIN
gfx/blue/intro_purin_2.6x6.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
gfx/blue/intro_purin_3.6x6.png
Normal file
After Width: | Height: | Size: 416 B |
BIN
gfx/blue/sgbborder.w128.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
gfx/blue/slotmachine1.png
Normal file
After Width: | Height: | Size: 459 B |
BIN
gfx/blue/slotmachine2.png
Normal file
After Width: | Height: | Size: 314 B |
BIN
gfx/circle_tile.png
Normal file
After Width: | Height: | Size: 81 B |
BIN
gfx/copyright.h8.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
gfx/diagonal_lines.png
Normal file
After Width: | Height: | Size: 100 B |
BIN
gfx/emotion_bubbles.w16.png
Normal file
After Width: | Height: | Size: 149 B |
BIN
gfx/falling_star.png
Normal file
After Width: | Height: | Size: 90 B |
BIN
gfx/font.1bpp
BIN
gfx/font.w128.png
Normal file
After Width: | Height: | Size: 719 B |
BIN
gfx/game_boy.norepeat.png
Normal file
After Width: | Height: | Size: 246 B |
BIN
gfx/gamefreak.h8.png
Normal file
After Width: | Height: | Size: 147 B |
BIN
gfx/gamefreak_intro.h8.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
gfx/gamefreak_logo.png
Normal file
After Width: | Height: | Size: 139 B |
BIN
gfx/hp_bar_and_status.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
gfx/hp_bar_and_status.w80.png
Normal file
After Width: | Height: | Size: 257 B |
BIN
gfx/intro_fight.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
gfx/ledge_hopping_shadow.png
Normal file
After Width: | Height: | Size: 81 B |
BIN
gfx/link_cable.png
Normal file
After Width: | Height: | Size: 207 B |
|
@ -1 +0,0 @@
|
|||
<~<$
|
BIN
gfx/minimized_mon_sprite.png
Normal file
After Width: | Height: | Size: 78 B |
|
@ -1 +0,0 @@
|
|||
Bf˙˝™˙Z$
|
BIN
gfx/mon_nest_icon.png
Normal file
After Width: | Height: | Size: 86 B |
BIN
gfx/mon_ow_sprites.png
Normal file
After Width: | Height: | Size: 324 B |
BIN
gfx/p_tile.1bpp
BIN
gfx/p_tile.png
Normal file
After Width: | Height: | Size: 80 B |
BIN
gfx/player_title.png
Normal file
After Width: | Height: | Size: 450 B |
BIN
gfx/pokeball.png
Normal file
After Width: | Height: | Size: 124 B |
BIN
gfx/pokecenter_ball.png
Normal file
After Width: | Height: | Size: 93 B |
BIN
gfx/pokedex.2bpp
BIN
gfx/pokedex.png
Normal file
After Width: | Height: | Size: 179 B |
BIN
gfx/pokemon_logo.w128.png
Normal file
After Width: | Height: | Size: 926 B |
BIN
gfx/red/intro_nido_1.6x6.png
Normal file
After Width: | Height: | Size: 462 B |
BIN
gfx/red/intro_nido_2.6x6.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
gfx/red/intro_nido_3.6x6.png
Normal file
After Width: | Height: | Size: 495 B |
BIN
gfx/red/redgreenversion.h8.png
Normal file
After Width: | Height: | Size: 145 B |
BIN
gfx/red/sgbborder.w128.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
gfx/red/slotmachine1.png
Normal file
After Width: | Height: | Size: 471 B |
BIN
gfx/red/slotmachine2.png
Normal file
After Width: | Height: | Size: 346 B |
|
@ -1 +0,0 @@
|
|||
?3,?+?Эл4ЭтЭ≤x8ЬХЬ┬Ьpp
|
BIN
gfx/red_fishing_tile_back.png
Normal file
After Width: | Height: | Size: 114 B |
|
@ -1 +0,0 @@
|
|||
?2/?'?<0F>Lרפ<>ה<EFBFBD>ר˜ר˜טרננ
|
BIN
gfx/red_fishing_tile_front.png
Normal file
After Width: | Height: | Size: 107 B |
|
@ -1 +0,0 @@
|
|||
ßÐûü??<'?'ðà`0ðpðÐðpð àÀÀ
|
BIN
gfx/red_fishing_tile_side.png
Normal file
After Width: | Height: | Size: 111 B |