Violet CLM
Mar 13, 2016, 10:33 PM
<img src="http://shemitz.net/static/files/misc/TrueColorHeader.png" />
<a href="http://shemitz.net/static/files/misc/TrueColor.zip" style="font-size: 2em">Download</a>
I wrote a library that lets you draw sprites using colors that aren't present in the level palette, runnable in the currently released version of JJ2+. It basically recreates much of the <code>jjPIXELMAP</code>, <code>jjANIMFRAME</code>, and <code>jjDraw*</code> code but with a special trick to get around the palette limitations. Even if you don't care about colors, if you're really not a python user, you might like that it reads graphics from <code>.bmp</code> files instead of custom <code>.j2a</code> files.
A sample script, <code>beach2.j2as</code>, is provided that makes the Fish enemies use the piranha sprites from Spelunky HD.
To use, write
#include "TrueColor.asc"
in your script file and then use some portion of the API, which is all described in the opening comment of <code>truecolor.asc</code>. Alternatively, look through <code>beach2.j2as</code> and copy+paste mercilessly until you've got everything working.
Further updates may or may not occur, but I didn't feel this was ready for a J2O upload just yet.
<a href="http://shemitz.net/static/files/misc/TrueColor.zip" style="font-size: 2em">Download</a>
I wrote a library that lets you draw sprites using colors that aren't present in the level palette, runnable in the currently released version of JJ2+. It basically recreates much of the <code>jjPIXELMAP</code>, <code>jjANIMFRAME</code>, and <code>jjDraw*</code> code but with a special trick to get around the palette limitations. Even if you don't care about colors, if you're really not a python user, you might like that it reads graphics from <code>.bmp</code> files instead of custom <code>.j2a</code> files.
A sample script, <code>beach2.j2as</code>, is provided that makes the Fish enemies use the piranha sprites from Spelunky HD.
To use, write
#include "TrueColor.asc"
in your script file and then use some portion of the API, which is all described in the opening comment of <code>truecolor.asc</code>. Alternatively, look through <code>beach2.j2as</code> and copy+paste mercilessly until you've got everything working.
Further updates may or may not occur, but I didn't feel this was ready for a J2O upload just yet.