| Mar 13, 2016, 11:33 PM | |
|
TrueColor library for AngelScript
![]() Download 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 jjPIXELMAP, jjANIMFRAME, and jjDraw* 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 .bmp files instead of custom .j2a files.A sample script, beach2.j2as, is provided that makes the Fish enemies use the piranha sprites from Spelunky HD.To use, write Code:
#include "TrueColor.asc" truecolor.asc. Alternatively, look through beach2.j2as 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. |
| Mar 15, 2016, 03:32 AM | |
|
Massive props! Indeed, the fact that bitmap images can be used as opposed to .j2a files is a huge convenience even if you are already able to use python. I feel like experimenting with this - I'm sure there's some awesome possibilities here and there.
|
| Feb 19, 2017, 04:13 PM | |
|
TrueColor v1.1 is out.
|
| Feb 8, 2018, 06:15 PM | |
|
TrueColor has been uploaded to J2O after holding off on it for two years. It's now version 1.2 and fixes a major bug from previous versions impacting color gradation, plus it supports swinging vines.
|
| May 3, 2019, 05:12 PM | |
|
TrueColor v1.3 is out. You can now open and manipulate PNG files, giving you full control over the alpha channel: every pixel in a sprite may have any red, green, blue, and alpha value, independent from every other pixel.
Here's another example showing some crabs with antialiasing.
Last edited by Violet CLM; May 3, 2019 at 06:17 PM. |
| May 30, 2019, 08:58 AM | |
|
This... Is... AWESOME!!!
Could this feature be theoretically used to create 16bit color "tilesets" by using sprites as tiles? That would be REALLY awesome!
__________________
Free will was a mistake. - God |
| May 30, 2019, 08:01 PM | |
|
Yeah sure. FPS could be an issue, but sure you could draw sprites and pretend they were tiles if you wanted to.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -8. The time now is 10:18 AM.
Jazz2Online © 1999-INFINITY (Site Credits). Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats. Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Original site design by Ovi Demetrian. DrJones is the puppet master. Eat your lima beans, Johnny.






Here's another example
