Beispiel #1
0
 public int Tick(TitleInput input)
 {
     int result = NONE;
     if (input.Start)
     {
         result = START_GAME;
     }
     timer++;
     if (titleWaveWidth > 0)
     {
         titleWaveWidth -= 0.125;
     }
     else
     {
         titleWaveWidth = 0;
     }
     if (input.Exit)
     {
         result = EXIT;
     }
     for (int i = 0; i < NUM_OBJECTS; i++)
     {
         objects[i].Tick(random);
     }
     return result;
 }
Beispiel #2
0
        public int Tick(TitleInput input)
        {
            int result = NONE;

            if (input.Start)
            {
                result = START_GAME;
            }
            timer++;
            if (titleWaveWidth > 0)
            {
                titleWaveWidth -= 0.125;
            }
            else
            {
                titleWaveWidth = 0;
            }
            if (input.Exit)
            {
                result = EXIT;
            }
            for (int i = 0; i < NUM_OBJECTS; i++)
            {
                objects[i].Tick(random);
            }
            return(result);
        }