
-----------------------------------
evogre3n
Sun Oct 16, 2005 4:41 pm

Double Buffering
-----------------------------------
Hey all,

I just want to make a simple example of double buffering using Console class (required by my teacher *sigh*) by making a box and moving it across the screen.

I can achieve this using thread.sleep and a for loop to move a c.fillRect(x,y,100,100); method...

Ive been reading up on double buffering, but its all so complicated and always integrated into some fancy applet games.. I just want to double buffer this box so it doesnt flicker, and so I get an easy intro to double buffering.

Can you guys show me an example of how to make a simple double buffer to move a box across the screen? 

Thanks

-----------------------------------
cycro1234
Sun Oct 16, 2005 4:43 pm


-----------------------------------
Or, perhaps, there is another way to make flicker free animation? One that is easier?
