Esempio n. 1
0
 public void LoadContent(ContentManager Content)
 {
     content = Content;
     myCoroutiner.StopAllCoroutines();
     currentRoundIndex = -1;
     currentRound      = 0;
     rounds            = new List <Round>()
     {
         //round, enCount, enSpeed, tbwtSpawn
         new Round(1, 3, 1.8f, new Range(0.8f, 1f)),
         new Round(2, 6, 2f, new Range(1f, 1.2f)),
         new Round(3, 9, 2.2f, new Range(.95f, 1.05f)),
         new Round(4, 12, 2.4f, new Range(0.75f, .95f)),
         new Round(5, 12, 2.4f, new Range(0.8f, 1f)),
         new Round(6, 15, 2.6f, new Range(0.6f, .8f)),
         new Round(7, 17, 2.8f, new Range(0.6f, .8f)),
         new Round(8, 20, 3.0f, new Range(0.6f, .8f)),
         new Round(9, 25, 3.2f, new Range(0.5f, .7f)),
         new Round(10, 30, 3.4f, new Range(0.45f, .6f))
     };
     myCoroutiner.StartCoroutine(StartNewRound());
 }
Esempio n. 2
0
        public void Update()
        {
            KeyboardState keyboardState = Keyboard.GetState();

            if (keyboardState.IsKeyDown(Keys.A) &&
                keyboardState.IsKeyDown(Keys.S) &&
                keyboardState.IsKeyDown(Keys.D) &&
                keyboardState.IsKeyDown(Keys.F) &&
                keyboardState.IsKeyDown(Keys.Enter) &&
                lastKeyboardState != keyboardState)
            {
                if (!hasEnteredIntenseRound)
                {
                    hasEnteredIntenseRound = true;
                    myCoroutiner.StartCoroutine(DisplayEnterDebugMode());
                }
            }

            myCoroutiner.Update();
        }