Merge pull request #317 from yenatch/pngs-kind-of

Pokemon and trainer pngs
This commit is contained in:
yenatch 2015-10-26 11:02:26 -04:00
commit 25025d1b6c
827 changed files with 20 additions and 37 deletions

View File

@ -13,6 +13,7 @@ cd ..
git clone --recursive https://github.com/pret/pokecrystal
cd pokecrystal
make init
```
To build **pokecrystal.gbc**:
@ -37,6 +38,7 @@ cd ..
git clone --recursive https://github.com/pret/pokecrystal
cd pokecrystal
make init
```
To build **pokecrystal.gbc**:
@ -64,6 +66,7 @@ pip install pypng
git clone --recursive https://github.com/pret/pokecrystal
cd pokecrystal
make init
```
To build **pokecrystal.gbc**:
@ -88,7 +91,7 @@ mkdir vagrantbox
cd vagrantbox
vagrant init pokecrystal
vagrant up
vagrant ssh -c "cd /vagrant && git clone --recursive https://github.com/pret/pokecrystal"
vagrant ssh -c "cd /vagrant && git clone --recursive https://github.com/pret/pokecrystal && cd pokecrystal && make init"
vagrant ssh
```

View File

@ -79,6 +79,11 @@ pngs:
find . -iname "*.[12]bpp" -exec touch {} \;
find . -iname "*.lz" -exec touch {} \;
init:
find . -iname "*.[12]bpp" -exec touch {} \;
find . -iname "*.lz" -exec touch {} \;
%.2bpp: %.png ; $(gfx) 2bpp $<
%.1bpp: %.png ; $(gfx) 1bpp $<
%.lz: % ; $(gfx) lz $<

17
gfx.py
View File

@ -12,12 +12,17 @@ pics = [
'gfx/shrink2',
]
base_stats = None
cache = {}
def get_cache(filename):
global cache
cached = cache.get(filename)
if cached == None:
cached = open(filename).read()
cache[filename] = cached
return cached
def get_base_stats():
global base_stats
if not base_stats:
base_stats = open('data/base_stats.asm').read()
return base_stats
return get_cache('data/base_stats.asm')
def get_pokemon_dimensions(name):
if name == 'egg':
@ -42,7 +47,7 @@ def filepath_rules(filepath):
pokemon_name = ''
if 'gfx/pics/' in filedir:
pokemon_name = filedir.split('/')[3]
pokemon_name = filedir.split('/')[-1]
if pokemon_name.startswith('unown_'):
index = filedir.find(pokemon_name)
if index != -1:

Binary file not shown.

BIN
gfx/overworld/000.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

View File

@ -1,2 +0,0 @@
3?<?PBààðøˆøÌü<üþ
þB?2>9OO3>üL|œþòþòü|Høðp€€0?;<_Oààðøø üÜ<þúþò??;7\t?<üüÜìþ:.þü<Øèðp€€8???ààðøì>ÂŒüüüø˜?<?3S¼ÿÿ»|D88ðøhüìþò_ýÿÝ>"?(?!ððøüÄüæþþÿÿ!?9?<OO?>þ&>ÎþòþòÌ|øx@À€€?/?'ððøüüþîÿýÿù5;?.>?þþîöÿÿþøøXè°° ? ?p?)?)ÀÀ àð8Ø|„øøøð0? ?<?3Sÿ¿þ»uM88à ðÐüÜþâÿÝ?ýúæ

BIN
gfx/overworld/001.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

View File

@ -1 +0,0 @@
?7S@oRְְננרררר<D7A8>לֺצJ?3  <0E>ּp°ר¨ר(נ0ָרˆרpp????_Oo_אאננרר<D7A8><D7A8><EFBFBD><EFBFBD>תעצת;7</?+<0E>ל<פ<>װרננטרˆרpp???9ְְננרררר<D7A8><D7A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>|<7C>  רָp°ר¨ר(נ0ָרˆרpp

BIN
gfx/overworld/002.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

BIN
gfx/overworld/003.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

BIN
gfx/overworld/004.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

BIN
gfx/overworld/005.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

BIN
gfx/overworld/006.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

BIN
gfx/overworld/007.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

View File

@ -1,7 +0,0 @@
 (7P@oR€€à`0Ðøìþ
þöJ?0/9M~^??9???ü ôœ²~zþüüøœüüü /0PP@€€à`0Ðøô þ
þ
þ?0_xW~Os?39?>>ü úê~òÎüÌ8øœü||>!? ? ?(ÀÀà p<>øüüüdü? ü¸øäœäüüøðð (7P@oR€€à`0Ðøìþ
þöJ?0Oy_~??ü òžú~üüøø8ø0ðÀÀ /0P@oP€€à`0Ðøô þ
þö
?0_x_~Os?3ü úú~òÎüÌ8ø0ðÀÀ #<}B@@P€€À@à ðøøøÈø(@>1=#ø(ðÐpð àp<C3A0>ð<EFBFBD>pðàà

Some files were not shown because too many files have changed in this diff Show More