Java2D Timer or Thread?
This has been asked many times, but I see a lot of '0' responses.I want to build animated games with Java2D, should I use a Timer or Thread(while(true){} situation or both?Games ranging from pacman to full blown rpg's.M
[257 byte] By [
MickeyB] at [2007-9-26 7:12:25]

I personally use a Thread written by "TheLorax". It helps alleviate some of the timing inconsistencies in Windows, but works on other platforms. Funny you should mention Pacman; that's what I'm working on to learn 2D programming and TheLorax's timer is in the code (SleepTimer.java) and used in the game (PacmanBoard.java). Take a look at my latest version at http://www.mindspring.com/~bishopmw/pacman/pacman.zip for the latest source.
Michael Bishop
Yes, between here and www.javagaming.org, I've learned just about everything to finish my Pacman project. Now that I'm mildly knowledgable about the subject, I try to answer other questions I see on the same thread.Michael Bishop
> very nice!Think i have seen you talk about this at
> javagaming.org, right?
>
>
> Thanks a ton! and thanks to TheLorax.
>
>
> M
>
Thanks, now if I could only get my own work done :->
ericew aka TheLorax
You guys are all stupid!James don't listen to these quacks. They are whack..freaking learn unix, if you want to understand java.and learn windows, if you want to see how it freaks out using java.