Exemplo n.º 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public BackgroundScreen()
        {
            TransitionOnTime = TimeSpan.FromSeconds(0.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);

            flock = null;

            flockParams = new AIParameters();
            ResetAIParams();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Create the bird flock
 /// </summary>
 /// <param name="theNum"></param>
 protected void SpawnFlock()
 {
     if (flock == null)
     {
         flock = new Flock(birdTexture, ScreenManager.GraphicsDevice.Viewport.TitleSafeArea.Width,
                           ScreenManager.GraphicsDevice.Viewport.TitleSafeArea.Height, flockParams);
     }
 }