Dragging an image

  • Thread starter Thread starter rick cameron
  • Start date Start date
R

rick cameron

Hi, all

I'm writing a game for the PPC in C#. I'd like to be able to drag a coloured
circle across the screen. Solitaire does a great job of dragging fairly
large images around.

Are there any samples for this sort of thing around? Any suggestions?

Thanks!

- rick
 
rick

just a pointer,... do't redraw the background.. override onPaintBackground
and don't call the base...
 
Hi Rick,

In the MSDN library under ".NET Development->.NET Compact
Framework->Technical Articles" there is an article titled "Writing Mobile
Games Using the Microsoft .NET Compact Framework." In the article, Ravi
discusses optimizations by using dirty rectangles instead of updating the
entire screen, as well as how to override the OnPaint and OnPaintBackground
functions. These techniques should be similar to what you are trying to do.

http://msdn.microsoft.com/library/

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top