I have a board drawn up that's 120x120. The pieces are 12x12.
I'm working out the best way to move the pieces on the board.
When you tap on the board, a piece will fall down from the top of the board until it hits the bottom or another piece.
Should I just double-buffer the whole 120x120 board, or should I just copy the 12x12 under the piece before placing it on the board?
I figure after starting the game, I will need to copy the 120x120 into a buffer so that I can copy bits of the board back when pieces match and animate until they disappear.
From this, I imagine I will need:
1. A double-buffer area to draw back to the viewable screen area after moves/animations have occurred.
2. A 120x120 buffer of the blank board from which I can copy 12x12 squares onto (1)
3. a 12x12 buffer to copy the board-space in (1) where a piece will be placed, in order that I can put it back and move the piece down 2-4 pixels to slide it down the screen.
I think this would be quicker than keeping the 120x120 in memory as a blank board and continually drawing board pieces on it then wiping them again and putting them back to animate and move them.
-------------------------------------------------------------------------------- http://www.bangrocks.com http://www.auspug.org http://www.geocaching.com.au
http://www.bangrocks.com/ZigZag - Quality PalmOS Software. Join up to beta-test!
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
