So, when your game is loading up, there is sometimes a loading screen so you don't have to look at a blank screen while it is loading up. You would usually have a loading bar that updates when a task in your loading process finishes. I don't know if I should make a new thread for the loading screen or just draw it over everything until the game is all loaded.

If anyone has done something like this or has any idea on what I should do, then that would be great!

What I'm curious about is how to determine the progress of the progress bar (lol). I mean, do you take, for example, all the resources you'll load, let's say 120 between images and sounds, then you'll do 120 items / 100 % = 1.2, thus when loading one resources incrementing 1,2 of the progress bar??

you don't want to have the implementation how to calculate the progress in the open.perhaps later you want to calc the progress relative to the file size of each resource and then perhaps give some hard to load resources a stronger weight.

Just use a xml which has all the paths and names for the images and load them deferred After that I load them normally via a List which has all the deferred resssources and on render I show that in a nice big bar This whole stuff does not happen in a different Thread... Why should I there is no reason because I just have images and some sounds. all 2D

I just have the room manager draw a black rectangle over the screen until each object is ready for rendering; along with a little something in the bottom corner that moves so the player knows it's working.

That's just my over-simplicity talking though.

“Life is pretty simple: You do some stuff. Most fails. Some works. You do more of what works. If it works big, others quickly copy it. Then you do something else. The trick is the doing something else.” ~Leonardo da Vinci

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org