void Object::Draw()
{
// Do not draw if it should not be visible
if ( !IsVisible() )
return;
iTick = m_pMainEngine->GetTime()/20; // 1 per 20ms
int iFrame = iTick % 30;
int iSize = 10 + iFrame;
if ( iFrame > 15 )
iSize = 10 + (30-iFrame);
/*draw object*/
// Store the position at which the object was last drawn
// You MUST do this to ensure that the screen is updated when only drawing movable objects
// This tells the system where to 'undraw' the object from
StoreLastScreenPositionAndUpdateRect();
}