Which is the better way to render ?

When I was searching for Java Game Development on Youtube. I saw 2 ways in which people were making games. One was loading images from files and drawing it on to the screen. And for movement they were changing the x and y. And some other people were getting the image and converting it to an array of pixels. And they had control over each and every pixels. The second way feels more complicated and better and the first way looks easy and good for beginners. What do you say ?

Didn’t you just create 2 threads for the same problem?

Sorry for that, I thought the question wasn’t very clear in the first thread so I made another thread. :stuck_out_tongue:

There is no ‘better’ way to render. There is a faster way or easier way. By better you probably mean faster performance wise, and I have no idea. I never did any research on these renderings modes. Though I saw some posts saying that rendering images is faster than the pixel method.

By better, I meant which is better performance wise. My Bad.

So why would you use the pixel array method ?

Would you mind linking the videos?

Sure

Pixel Array Method: https://www.youtube.com/playlist?list=PLlrATfBNZ98eOOCk2fOFg7Qg5yoQfFAdf

You can use both at the same time if you’d like. They both basically do the same thing except with the pixel array you can have more control over what’s drawn. Which for most things isn’t necessary at all.

Just learn openGL. No point to learn useless technology that don’t convert to actual knowledge.

These kind of posts aren’t helpful at all… if the OP wants to use other means to an end, let him. To say there’s no point, is to just deprive knowledge which may in fact become useful at some point.

Me personally, when I used to use Java2D, I would always choose the pixelArray route; I like to have control of everything :stuck_out_tongue:
What first turned me onto the pixel array method was the speed increase. I used a simple Bitmap class I wrote which supported an additional array for alpha values, and so I essentially did all the graphical stuff myself.

It’s hindsight from professional graphics programmer that played with java2d not so long ago and haven’t done anything with that gained knowledge. It’s simply useless.