Hi!

Use 2 offscreen windows. Make one the size of the screen 
(160x160). This one is there for double-buffering, which 
avoids flickering. Make another one the size of your car. 
This one is used to store the background of the car before 
you actually draw the car.

The order is:
==============
1. Draw background to offscreen window #1
2. save background behind car in window #2
3. Draw car to window #1
4. Copy Window #1 to current screen
5. Restore background behind car to window #2
6. Determine new position of car
7. Goto step 2

You can enhance speed by making step 4 "smart", i.e. don't 
copy the entire window, but just the changed region.

If you need source code examples for any of the above steps 
you should look at http://www.tilo-christ.de/Razor

Hope that helps,
Tilo


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to