public PopupBonusScene()
            : base()
        {
            this.dismissed = true;
            this.quiz = false;

            gameObjects = new System.Collections.Generic.List<GameObject>();

            this.cursorRectangle = new Rectangle(
                (int)cursor.mouse.X,
                (int)cursor.mouse.Y,
                1,
                1
            );
            gameObjects.Add(new CursorGameObject(cursor));

            this.sceneIndex = SceneIndex.PopupScoreScene;

            this.background = new GameObject("menu/menu", new Vector2(Game1.CAMERA_WIDTH / 2, Game1.CAMERA_HEIGHT / 2));
            this.background.zindex = 0.8f;
            gameObjects.Add(this.background);

            this.bonusText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 145), "Yippy Ay Kay Yay!");
            this.resumeButton = new MenuItem(new Vector2(Game1.CAMERA_WIDTH / 2, 345), "Resume");
            this.bonusWordText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 185), "Bonus Word: ...");
            this.partOfSpeechText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 225), "Part of Speech: ...");
            this.similarToText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 265), "Similar to: ...");
            this.definitionText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 305), "Definition: ...");

            this.bonusText.zindex = .9f;
            this.resumeButton.zindex = .9f;
            this.bonusWordText.zindex = .9f;
            this.partOfSpeechText.zindex = .9f;
            this.similarToText.zindex = .9f;
            this.definitionText.zindex = .9f;

            this.bonusText.fontPath = "fonts/Western";
            this.bonusText.fontColor = Color.Green;
            this.resumeButton.fontPath = "fonts/Western";

            this.bonusWordText.fontPath = "fonts/WesternSmall";
            this.partOfSpeechText.fontPath = "fonts/WesternSmall";
            this.similarToText.fontPath = "fonts/WesternSmall";
            this.definitionText.fontPath = "fonts/WesternSmall";

            gameObjects.Add(this.bonusText);
            gameObjects.Add(this.resumeButton);
            gameObjects.Add(this.bonusWordText);
            gameObjects.Add(this.partOfSpeechText);
            gameObjects.Add(this.similarToText);
            gameObjects.Add(this.definitionText);
        }
        public PopupScoreScene()
            : base()
        {
            this.dismissed = true;

            gameObjects = new System.Collections.Generic.List<GameObject>();

            this.cursorRectangle = new Rectangle(
                (int)cursor.mouse.X,
                (int)cursor.mouse.Y,
                1,
                1
            );
            gameObjects.Add(new CursorGameObject(cursor));

            this.sceneIndex = SceneIndex.PopupScoreScene;

            this.background = new GameObject("menu/menu", new Vector2(Game1.CAMERA_WIDTH / 2, Game1.CAMERA_HEIGHT / 2));
            this.background.zindex = 0.8f;
            gameObjects.Add(this.background);

            this.congratulationsText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 145), "Congratulations!");
            this.resumeButton = new MenuItem(new Vector2(Game1.CAMERA_WIDTH / 2, 345), "Resume");
            this.longestWordText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 185), "Longest Word: ...");
            this.highestPointWordText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 225), "Highest Point Word: ...");
            this.mostCreatedWordText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 265), "Most Created Word: ...");
            this.totalWordsCreatedText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 305), "Total Words Created: ...");

            this.congratulationsText.zindex = .9f;
            this.resumeButton.zindex = .9f;
            this.longestWordText.zindex = .9f;
            this.highestPointWordText.zindex = .9f;
            this.mostCreatedWordText.zindex = .9f;
            this.totalWordsCreatedText.zindex = .9f;

            this.congratulationsText.fontPath = "fonts/Western";
            this.congratulationsText.fontColor = Color.Gold;
            this.resumeButton.fontPath = "fonts/Western";

            this.longestWordText.fontPath = "fonts/WesternSmall";
            this.highestPointWordText.fontPath = "fonts/WesternSmall";
            this.mostCreatedWordText.fontPath = "fonts/WesternSmall";
            this.totalWordsCreatedText.fontPath = "fonts/WesternSmall";

            gameObjects.Add(this.congratulationsText);
            gameObjects.Add(this.resumeButton);
            gameObjects.Add(this.longestWordText);
            gameObjects.Add(this.highestPointWordText);
            gameObjects.Add(this.mostCreatedWordText);
            gameObjects.Add(this.totalWordsCreatedText);
        }
Exemple #3
0
        public PopupMenuScene()
            : base()
        {
            this.dismissed = true;

            gameObjects = new System.Collections.Generic.List<GameObject>();

            this.cursorRectangle = new Rectangle(
                (int)cursor.mouse.X,
                (int)cursor.mouse.Y,
                1,
                1
            );
            gameObjects.Add(new CursorGameObject(cursor));

            this.sceneIndex = SceneIndex.PopupMenuScene;

            this.background = new GameObject("menu/menu", new Vector2(Game1.CAMERA_WIDTH / 2, Game1.CAMERA_HEIGHT / 2));
            this.background.zindex = 0.8f;
            gameObjects.Add(this.background);

            this.resumeButton = new MenuItem(new Vector2(Game1.CAMERA_WIDTH / 2, 170), "Resume");
            this.newGameButton = new MenuItem(new Vector2(Game1.CAMERA_WIDTH / 2, 250), "New Game");
            this.exitButton = new MenuItem(new Vector2(Game1.CAMERA_WIDTH / 2, 330), "Exit");

            this.resumeButton.fontPath = "fonts/Western";
            this.newGameButton.fontPath = "fonts/Western";
            this.exitButton.fontPath = "fonts/Western";

            resumeButton.zindex = .9f;
            newGameButton.zindex = .9f;
            exitButton.zindex = .9f;

            gameObjects.Add(this.resumeButton);
            gameObjects.Add(this.newGameButton);
            gameObjects.Add(this.exitButton);
        }
Exemple #4
0
        public PopupQuizScene()
            : base()
        {
            this.dismissed = true;

            gameObjects = new System.Collections.Generic.List<GameObject>();

            this.cursorRectangle = new Rectangle(
                (int)cursor.mouse.X,
                (int)cursor.mouse.Y,
                1,
                1
            );
            gameObjects.Add(new CursorGameObject(cursor));

            this.sceneIndex = SceneIndex.PopupScoreScene;

            this.background = new GameObject("menu/menu", new Vector2(Game1.CAMERA_WIDTH / 2, Game1.CAMERA_HEIGHT / 2));
            this.background.zindex = 0.8f;
            gameObjects.Add(this.background);

            rand = new Random();

            this.wrongSentences = new List<String>()
            {
                "His <*word*> knows no limits.",
                "I <*word*> a good red apple after dinner.",
                "This <*word*> is intended for recreation.",
                "She put her <*word*> into its crib",
                "He rang the <*word*> to signal the end of class.",
                "Could you hand me that <*word*> for this drill?",
                "We are <*word*> to school.",
                "I have to <*word*> the dishes.",
                "You should go <*word*> dinner.",
                "I <*word*> for my upcoming quiz."
            };

            this.rightSentences = new List<String>()
            {
                "The turtle is very <*word*>.",
                "I met a <*word*> person today.",
                "The <*word*> rabbit is funny.",
                "I like the <*word*> guy in my class.",
                "There is a <*word*> girl on the playground"
            };

            this.quizText = new TokenGameObject(new Vector2(Game1.CAMERA_WIDTH/2, 145), "Which one of these is correct?");
            this.sentence1Text = new MenuItem(new Vector2(Game1.CAMERA_WIDTH / 2, 225), "...");
            this.sentence2Text = new MenuItem(new Vector2(Game1.CAMERA_WIDTH/2, 265), "...");
            this.sentence3Text = new MenuItem(new Vector2(Game1.CAMERA_WIDTH/2, 305), "...");

            this.quizText.zindex = .9f;
            this.sentence1Text.zindex = .9f;
            this.sentence2Text.zindex = .9f;
            this.sentence3Text.zindex = .9f;

            this.quizText.fontPath = "fonts/WesternSmall";
            this.quizText.fontColor = Color.Gold;

            this.sentence1Text.fontPath = "fonts/WesternExtraSmall";
            this.sentence2Text.fontPath = "fonts/WesternExtraSmall";
            this.sentence3Text.fontPath = "fonts/WesternExtraSmall";

            gameObjects.Add(this.quizText);
            gameObjects.Add(this.sentence1Text);
            gameObjects.Add(this.sentence2Text);
            gameObjects.Add(this.sentence3Text);
        }