Skip to content

Commit

Permalink
Add phone buttons and DMG variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqui committed Jun 21, 2016
1 parent e4948a0 commit 8c0e840
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 2 deletions.
Binary file added gfx/phones/0/buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/0/menus_dmg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/1/buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/1/menus_dmg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/1/numbers_dmg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/2/buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/2/menus_dmg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gfx/phones/2/numbers_dmg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 49 additions & 1 deletion gfx/phones/keypad_gfx.asm
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,52 @@ PhoneKeypadGfx:
INCBIN "gfx/phones/2/letters2.2bpp"
INCBIN "gfx/phones/2/menus.2bpp"
INCBIN "gfx/phones/2/solfege.2bpp"
INCBIN "gfx/phones/2/menus.2bpp"
INCBIN "gfx/phones/2/menus.2bpp"

; rest of bank is blank

SECTION "Phone button graphics", ROMX[$4000], BANK[$7a]
PhoneButtonGfx:
rept 3
INCBIN "gfx/phones/0/buttons.2bpp"
INCBIN "gfx/phones/1/buttons.2bpp"
INCBIN "gfx/phones/2/buttons.2bpp"
endr

; rest of bank is blank

SECTION "Phone keypad graphics DMG", ROMX[$4000], BANK[$7b]
PhoneKeypadGfxDmg:
INCBIN "gfx/phones/0/numbers.2bpp"
INCBIN "gfx/phones/0/menus_dmg.2bpp"
INCBIN "gfx/phones/0/letters1.2bpp"
INCBIN "gfx/phones/0/menus_dmg.2bpp"
INCBIN "gfx/phones/0/letters2.2bpp"
INCBIN "gfx/phones/0/menus_dmg.2bpp"
INCBIN "gfx/phones/0/solfege.2bpp"
INCBIN "gfx/phones/0/menus_dmg.2bpp"
; one tile row has some extra shading against the cgb version
; natsume probably messed up there
INCBIN "gfx/phones/1/numbers_dmg.2bpp"
INCBIN "gfx/phones/1/menus_dmg.2bpp"
INCBIN "gfx/phones/1/letters1.2bpp"
INCBIN "gfx/phones/1/menus_dmg.2bpp"
INCBIN "gfx/phones/1/letters2.2bpp"
INCBIN "gfx/phones/1/menus_dmg.2bpp"
INCBIN "gfx/phones/1/solfege.2bpp"
INCBIN "gfx/phones/1/menus_dmg.2bpp"
; one single tile has some extra shading against the cgb version
; natsume probably messed up again
INCBIN "gfx/phones/1/numbers_dmg.2bpp"
INCBIN "gfx/phones/2/menus_dmg.2bpp"
INCBIN "gfx/phones/2/letters1.2bpp"
INCBIN "gfx/phones/2/menus_dmg.2bpp"
INCBIN "gfx/phones/2/letters2.2bpp"
INCBIN "gfx/phones/2/menus_dmg.2bpp"
INCBIN "gfx/phones/2/solfege.2bpp"
INCBIN "gfx/phones/2/menus_dmg.2bpp"
; rest of bank is blank
2 changes: 1 addition & 1 deletion rip.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
dd skip=$(($1)) count=$(($2)) if=baserom.gbc of=$3 bs=1 >& /dev/null
dd skip=$(($1)) count=$(($2)) if=baserom_pw.gbc of=$3 bs=1 >& /dev/null
if [[ "$3" == *.1bpp ]] || [[ "$3" == *.2bpp ]]; then
python pokemon-reverse-engineering-tools/pokemontools/gfx.py png $3
fi
Expand Down
10 changes: 10 additions & 0 deletions rip_scripts/rip_phone_graphics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ mkdir gfx/phones/2/
./rip.sh 0x1e6400 6*8*16 gfx/phones/2/letters1.2bpp
./rip.sh 0x1e6800 6*8*16 gfx/phones/2/letters2.2bpp
./rip.sh 0x1e6c00 6*8*16 gfx/phones/2/solfege.2bpp

./rip.sh 0x1e8000 16*8*4 gfx/phones/0/buttons.2bpp
./rip.sh 0x1e8200 16*8*4 gfx/phones/1/buttons.2bpp
./rip.sh 0x1e8400 16*8*4 gfx/phones/2/buttons.2bpp

./rip.sh 0x1ec300 16*16 gfx/phones/0/menus_dmg.2bpp
./rip.sh 0x1ed000 6*8*16 gfx/phones/1/numbers_dmg.2bpp
./rip.sh 0x1ed300 16*16 gfx/phones/1/menus_dmg.2bpp
./rip.sh 0x1e6000 6*8*16 gfx/phones/2/numbers_dmg.2bpp
./rip.sh 0x1ee300 16*16 gfx/phones/2/menus_dmg.2bpp

0 comments on commit 8c0e840

Please sign in to comment.