Hey. In my current proyecto, i am using a good chunk `o sprites. Its n action arcade kind of game, and i want to be able to swap between a bunch of different kinds of color modes pretty fast, and mantain a good framerate. So far, i have found ways of doing an inverted color scheme and a greyscale scheme, and im looking for a couple other ones, maybe spohia?
Anyway, so at the moment, im planting a code in a lot of different parts of the source to turn enemies/bullets/backgroud/text/player and other stuff different colors.
the code looks similar to this...
if colorchange=1
grey(e)=(red(e)+green(e)+blue(e))/3
set sprite diffuse e,grey(e),grey(e),grey(e)
endif
if colorchange=2
R=255-red(e)
G=255-green(e)
B=255-blue(e)
set sprite diffuse e,R,G,B
endif
if colorchange=3
G=green(e)/2
B=blue(e)/2
R=red(e)/2
set sprite diffuse e,R,G,B
endif
HOWEVER, this is all good and well, but i want to know if there is a quicker way of doing this? I was thinking that you could modify everypixel on the screen with memblocks, but i have absoululy NO idea how to use those... So guess what this comes down to is a request for help in the memblocks department.