示例#1
0
        protected override void LoadContent()
        {
            //			Active = true;//For t esting.

            keyArray = 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
            };

            LoadHighScores();
            background1 = CreateTexture(400, 600, game.graphics);
            background2 = CreateTexture(370, 570, game.graphics);
            nameBack1 = CreateTexture(400, 200, game.graphics);
            namePos1 = new Vector2(312, 284);
            nameBack2 = CreateTexture(370, 170, game.graphics);
            namePos2 = new Vector2(327, 299);
            highscoreTile = CreateTexture(370, 52, game.graphics);
            enterNameText = new Text(game, "ENTER YOUR NAME", new Vector2 (415, 310), Color.White);
            enterNameText.OtherLoadContent("HighJakarta_22");
            nameText = new Text(game, "Type Your Name", new Vector2 (415, 380), Color.White);
            nameText.OtherLoadContent("HighJakarta_22");
            gameText1 = new Text(game, "", new Vector2(), Color.White);
            gameText1.OtherLoadContent("HighJakarta_22");
            gameText2 = new Text(game, "", new Vector2 (), Color.White);
            gameText2.OtherLoadContent("HighJakarta_22");
        }