I am making a 2d platformer in java using the slick2d engine. I only use 2 colors: black and white. I want to implement a feature were i invert the colors of certain entities. However i can't find a way to do this. Anyone knows of an easy way or function?
Try this on white one first,
Color test = new Color(0f,1f,0f); then in your render method using your sprite sheet do.
spriteSheet.startUse(); test.bind(); //draw sprites spriteSheet.endUse();
If this works then you could simply have a single sprite sheet (of all white) and color it anyway you wish.
Hope it helps