For my first RealBasic program I decided to have a black pixel
run around eating green pixels. I can only see the grazing damage when
I stop the whole thing with, say, a mouse-down event. I did this:
- gave Window1 a Picture property, p
- in Open, did newPicture and made the green field
- in Paint, g.DrawPicture self.p,0,0
- in Action of Button1 I call a new method "eat"
- eat does the moving and changing green pixels to white by using
self.p.pixel,
calling Canvas1.graphics.drawPicture self.p,Canvas1.left,Canvas1.top
and (blush) checking system.mouseDown so I can stop the dang thing.
What do I need to do to see the little black pixel running
around destroying green?
Thanks for any hints. Oh, and I realize that I could do a
better job at organizing things in OOP fashion. That's next!
Alistair
--
Phone: 604-822-2645 | 6270 University Boulevard
Fax: 604-822-2416 | Vancouver, Canada, V6T 1Z4