cogitokat
0b5885e1a9
convert indents to 4 spaces in gfx.py
...
indents were previously 8 spaces
2013-06-23 16:47:35 -03:00
cogitokat
a60bf16901
more docstring/indent fixes in gfx.py
2013-06-23 15:07:39 -03:00
cogitokat
3ee5295ee3
more gfx.py docstring changes
2013-06-23 13:15:23 -04:00
cogitokat
60b52a8cf0
Change bad indents in extras/gfx.py
2013-06-23 14:12:03 -03:00
Kat Harrison
1120eaaaf5
Edit some docstrings in /extras.
2013-06-23 12:43:16 -04:00
yenatch
bbed370d84
gfx: return mass-decompress command
...
still reqd by make pngs
2013-06-13 17:26:50 -04:00
yenatch
6ba758aa53
expand shortened palettes
...
rather than keep up inconsistent palette formats, just incbin a portion of each
2013-06-12 21:40:37 -04:00
yenatch
5803db714c
gfx: workable command line functions
2013-06-12 21:40:32 -04:00
yenatch
b06c96e4d2
gfx: palette checking in to_png
2013-06-12 14:38:38 -04:00
yenatch
5d204ce569
fix palette functions and output palettes in 2bpp conversion
2013-06-12 14:29:39 -04:00
yenatch
5cf1754b08
gfx: handling for <4-color pngs when converting to 2bpp
...
without a .pal file as reference, palettes are sorted by luminance.
pokemon crystal reads palettes exactly 4 colors in length.
if an image used fewer than 4 colors, invalid palettes were produced.
instead, dummy colors are inserted to pad out the palette.
2013-06-12 14:29:35 -04:00
yenatch
e3565bd700
gfx: safer alternating-byte detection in compression
2013-05-18 04:46:52 -04:00
yenatch
77e365d49f
gfx: fix a typo
2013-05-18 04:46:52 -04:00
yenatch
604cafc278
gfx: lz to png from command line
2013-05-18 04:46:52 -04:00
yenatch
a1b9fdc9c9
gfx.py: remove trailing tabs
2013-05-18 04:46:51 -04:00
yenatch
abaed2145f
gfx.py: get rid of argparse
2013-05-18 04:46:47 -04:00
yenatch
3a0e80932e
fix data-handling errors in gfx.py
2013-05-17 01:59:23 -04:00
yenatch
05ceafe614
there is no os.touch
2013-05-12 10:22:24 -04:00
yenatch
a85077eb4f
touch graphic files during decmp so make doesnt try to replace them
2013-05-11 13:39:40 -04:00
Bryan Bishop
1abb020335
Merge pull request #124 from yenatch/master
...
hram labels + png make target
2013-03-20 20:12:48 -07:00
yenatch
b570c4d6e6
fix path handling in png make target
...
lz files were being decompressed to the top directory (gfx/)
2013-03-18 16:36:30 -04:00
Bryan Bishop
e0e902b1c7
dump tileset pngs in gfx.py
2013-03-18 04:52:49 -05:00
yenatch
7f7f461240
Export any detected palettes to png by default
...
Checks for any palette using the same name as the 2bpp file.
2013-02-12 03:40:41 -05:00
yenatch
ad0578fda0
Fix png export orientation
...
A quirk of the Decompressed class dissociated the orientation from
the output attribute.
The makefile no longer suppresses output since it's still relevant.
2013-02-12 03:31:35 -05:00
yenatch
0b8c5ef75b
Finish off make target for png generation
...
Now any existing lz files are converted to 2bpp, and all 2bpp files
are converted to png.
2013-02-11 17:59:43 -05:00
yenatch
98d8914b62
better dimension handling in 2bpp->png
2013-02-11 04:13:36 -05:00
yenatch
d1172e1fb6
Add build target to mass-generate pngs from 2bpp files
2013-02-11 04:13:36 -05:00
yenatch
80600f9291
Infrastructure to dump pngs for 2bpp graphics
2013-02-11 04:12:59 -05:00
yenatch
e7762890aa
Don't try to convert empty 2bpp files
...
Also, make non-square images 1 tile wide
Minor path fixes and cleanup
2013-02-09 06:26:09 -05:00
yenatch
70280c0c3f
Add some command-line interfaces for use w/ makefile
...
Extras:
-function to dump trainer pals
-fix testing leftover in a compression function
-keep load_rom() from getting in the way (relative address breaks extras)
2013-02-09 04:36:36 -05:00
yenatch
da205909c0
implement png import/export
...
palette export works fine, but palette import is disabled for now
2013-02-07 21:03:19 -05:00
yenatch
4d44c2c0e6
Condense pic dimensions table
2013-02-06 02:09:57 -05:00
yenatch
cd0f717305
update gfx.py to reflect new structure
2013-01-22 05:01:21 -05:00
yenatch
9fbe7ea423
make careless use of gfx.py less fatal
2013-01-13 00:40:13 -05:00
yenatch
238f406024
implement rgb macro for palettes
2013-01-13 00:38:48 -05:00
yenatch
2cdf7a3688
include all compressed and decompressed graphics
...
* frontpics & animation tiles
* backpics
* trainer pics
* attack animation gfx
* intro gfx
* intro tilemaps
* title gfx
* tilesets
* player backpic
* dude backpic
* pokegear/town map
fixes #33 , #34 and #35
2013-01-04 04:08:13 -06:00
yenatch
e91f41dd35
allow other files to import gfx.py
2013-01-02 04:37:45 -05:00
yenatch
3e953ad7b6
make gfx.py more convenient from command line
2013-01-01 16:31:05 -05:00
yenatch
a3fe9c00d0
decompress all known gfx
2012-12-31 22:53:40 -05:00