I have a question, however. Whatever gets printed, I assume, stays
printed unless erased. If there is already a "5" at a particular
location and I then print an "8" at that location, the result, I think,
would be an "8" printed on top of the "5" already there, making a mess,
right? (After all, it's a piece of the canvas, not an EditField.) What
would be a good way to _erase_ whatever number may already be written in
a square at a particular location?
I think you will want to have a background image or some algorithm to
produce the playing board, and then draw the appropriate numbers,
perhaps from an array or dictionary during the paint event.
A good example of a game that does similar things is the Bejeweled
example that came with the exampleprojects download. Mars did a great
job of showing how to develop a canvas based game.
hth,
Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|