Esempio n. 1
0
 private void Flap()
 {
     _flapIntervalCounter++;
     if (_flapIntervalCounter == FLAP_INTERVAL)
     {
         _bird.SetBirdImage(_birdFlapImageCounter);
         if (_birdFlapImageCounter == 3)
         {
             _birdFlapImageCounter = 0;
         }
         _flapIntervalCounter = 0;
         _birdFlapImageCounter++;
     }
 }