Merge pull request #317 from yenatch/pngs-kind-of
Pokemon and trainer pngs
@ -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
|
||||
```
|
||||
|
||||
|
5
Makefile
@ -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
@ -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:
|
||||
|
BIN
gfx/overworld/000.png
Normal file
After Width: | Height: | Size: 300 B |
@ -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
After Width: | Height: | Size: 373 B |
@ -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
After Width: | Height: | Size: 209 B |
BIN
gfx/overworld/003.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
gfx/overworld/004.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
gfx/overworld/005.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
gfx/overworld/006.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
gfx/overworld/007.png
Normal file
After Width: | Height: | Size: 307 B |
@ -1,7 +0,0 @@
|
||||
(7P@oR€€à`0Ðøìþ
|
||||
þöJ?0/9M~^??9???üôœ²~zþüüøœüüü/0PP@€€à`0Ðøôþ
|
||||
þ
|
||||
þ?0_xW~Os?39?>>üúê~òÎüÌ8øœü||>!? ? ?(ÀÀà p<>øüüüdü? üxè¸øäœäüüøðð(7P@oR€€à`0Ðøìþ
|
||||
þöJ?0Oy_~??üòžú~üüøø8ø0ðÀÀ/0P@oP€€à`0Ðøôþ
|
||||
þö
|
||||
?0_x_~Os?3üúú~òÎüÌ8ø0ðÀÀ #<}B@@P€€À@à ðøøøÈø(@>1=#ø(ðÐpð àp<C3A0>ð<EFBFBD>pðàà
|