Hi, I made a little Shooter game with two ships firing at each other. I used methods of paintComponent for drawing or moving object, but for some reason it ran at a different speed on each computer.
I searched for a solution and made some modifications to my game like drawing and moving objects in thread. Now it runs at the same speed on every сomputer. Also if I change size. But the problem is I used J3DTimer.getValue().
To use this library I downloaded Java3d. If the computer does not have this library or installation my game does not work. How can I solve this problem? Should I tell everyone to setup Java##? :))
Also I tried using standard System.currentTimeMillis(), but then my game works very slow... Any ideas?