Painted Shapes are Flashy and Jumpy when Repainting?
I m开发者_开发技巧ade an Applet that paints shapes in the Windows, then each frame, I make them go down to simulate Basic Gravity but the shape flashes alot ( Which is unwanted ) And I couldn't find a way to make it Smooth. I don't mind slight lag for Smooth Graphics.
Sounds like you're about to discover double buffering: http://en.wikipedia.org/wiki/Multiple_buffering#Double_buffering_in_computer_graphics
For help implementing it in Java: http://download.oracle.com/javase/tutorial/extra/fullscreen/doublebuf.html
精彩评论