I am currently trying to make a game with pixelated graphics. The game is supposed to run with as few textures as possible. Instead of this it is supposed to generate the levels randomly, and fill in the pixels accordingly.
I would like to change pixels individually, since this way, I only can change the pixels that have to be changed, which seems to me to be the most efficient way.
What would be the fastest way in which I could achieve individual pixel updating/changing?
I have tried Pixmaps but they seem to be very slow and in order to draw them as far as I could find you have to create a new texture from the pixmap for every frame.
Drawing each 'pixel' as a square texture also seems to be a very inefficient way.
Does java/Libgdx have a 'fast' way of doing this?
I also saw a lot of people in other Posts recommending to use bufferedimage from the Java2D library. However, I am not sure if this can be combined with Libgdx functions and textures, which I will need for some entities. As far as I could see it requires you to use a Java2D graphics window.
Can you still use some textures in java2D?