diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-08-27 11:18:30 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-27 11:18:30 -0500 |
commit | ddc4a929058ff103cac5743ca39bb8e4b520ee90 (patch) | |
tree | 9d986f9685c4c898e80aab898d199f5b72f9977b /extras/overworldripper.py | |
parent | c61b3d42ad4e88b32e9c321b7fcc559ec0220e64 (diff) | |
parent | 94f5f61265b9654925b66dca7c3256668435eeea (diff) |
Merge pull request #161 from kanzure/remove-extras
This merges branch 'remove-extras' into master. The extras/ path is now
replaced by a git submodule that is independently version controlled and
separate from the pokecrystal project.
The git submodule is a reference to v1.1.0 of this repository:
https://github.com/kanzure/pokemon-reverse-engineering-tools
It's also available as a generic python module now:
https://pypi.python.org/pypi/pokemontools
https://github.com/kanzure/pokecrystal/pull/161
Diffstat (limited to 'extras/overworldripper.py')
m--------- | extras | 0 | ||||
-rw-r--r-- | extras/overworldripper.py | 18 |
2 files changed, 0 insertions, 18 deletions
diff --git a/extras b/extras new file mode 160000 +Subproject 016f0206b5029fc83a6200be29b0f980c76dfd9 diff --git a/extras/overworldripper.py b/extras/overworldripper.py deleted file mode 100644 index 654f28747..000000000 --- a/extras/overworldripper.py +++ /dev/null @@ -1,18 +0,0 @@ -import gfx - -def rip_sprites_from_bank(bank, offset=0): - """ - Rips sprites from specified bank. - - Sprites are 4x4. - """ - file_handler = open("../gfx/overworld/bank" + str(hex(bank))[2:] + ".asm", "w") - for sprite in range(0 + offset, 256 + offset): - filename = "../gfx/overworld/" + str(sprite).zfill(3) + ".2bpp" - gfx.get_uncompressed_gfx((bank * 0x4000 + ((sprite - offset) * 4 * 0x10)), 4, filename) - gfx.to_png(filename) - file_handler.write("INCBIN \"" + filename[3:] + "\"\n") - file_handler.close() - -rip_sprites_from_bank(0x30) -rip_sprites_from_bank(0x31, offset=256) |