Esempio n. 1
0
        private TextInputManager()
        {
            myCoroutiner        = new Coroutiner();
            isTyping            = false;
            underScoreIsShowing = false;

            newHighScorePosition = new Vector2(400, 250);
            namePosition         = new Vector2(840, 400);
            float spacing = 82;

            underScorePositions = new Vector2[] {
                namePosition + new Vector2(-9, 10),
                namePosition + new Vector2(-9 + spacing * 1, 10),
                namePosition + new Vector2(-9 + spacing * 2, 10),
            };
            timerPosition = new Vector2(900, 800);
            maxCharacters = 3;
            scale         = Vector2.One * 1f;
            validLetters  = new Keys[] {
                Keys.A,
                Keys.B,
                Keys.C,
                Keys.D,
                Keys.E,
                Keys.F,
                Keys.G,
                Keys.H,
                Keys.I,
                Keys.J,
                Keys.K,
                Keys.L,
                Keys.M,
                Keys.N,
                Keys.O,
                Keys.P,
                Keys.Q,
                Keys.R,
                Keys.S,
                Keys.T,
                Keys.U,
                Keys.V,
                Keys.W,
                Keys.X,
                Keys.Y,
                Keys.Z,
            };
        }