I’ve seen a lot of tutorials on how to do 2D games. I’ve done a couple myself, but really haven’t dug into it since Java 1.4 was in beta. Back then, the easiest thing to do to control a smooth framerate was a hack that involved an auto-adjusting thread that would sleep 1ms and “tick” every X milliseconds (where was 1000/frame rate).
If I was to start creating a 2D game with the core libraries, what would be the “latest and greatest” strategy to maintain a frame rate and draw to the screen? BufferStrategy and fullscreen? Another sleep/notify thread? I’ve seen a few, but I’m looking for the best to start with (and possibly an example) with the 1.6 library.
Thanks for any guidance or links you can propose!
Michael