예제 #1
0
        public void StartWaveCountdown()
        {
            // Countdown
            WaveStartCountDownNo = 4;
            MessageFade msg = new MessageFade(Game, "Wave " + Wave, 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 800);

            Game.Layer_GUI.AddChild(msg);
        }
예제 #2
0
        private void WaveStartCountDown()
        {
            WaveStartCountDownNo--;

            MessageFade msg;

            if (WaveStartCountDownNo == 1)
            {
                msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), null, 100);
            }
            else
            {
                msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 100);
            }
            Game.Layer_GUI.AddChild(msg);

            if (WaveStartCountDownNo == 1)
            {
                StartWave();
            }
        }
예제 #3
0
        protected virtual void MessagePopup(string msg)
        {
            MessageFade popup = new MessageFade(Game, msg, 35, Position);

            Game.Layer_GUI.AddChild(popup);
        }
예제 #4
0
        private void WaveStartCountDown()
        {
            WaveStartCountDownNo--;

            MessageFade msg;
            if (WaveStartCountDownNo == 1)
                msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), null, 100);
            else
                msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 100);
            Game.Layer_GUI.AddChild(msg);

            if (WaveStartCountDownNo == 1)
                StartWave();
        }
예제 #5
0
 public void StartWaveCountdown()
 {
     // Countdown
     WaveStartCountDownNo = 4;
     MessageFade msg = new MessageFade(Game, "Wave " + Wave, 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 800);
     Game.Layer_GUI.AddChild(msg);
 }
예제 #6
0
 protected virtual void MessagePopup(string msg)
 {
     MessageFade popup = new MessageFade(Game, msg, 35, Position);
     Game.Layer_GUI.AddChild(popup);
 }