Example #1
0
        public Menu()
        {
            currentState = constants.GAMESTATE.START_SCREEN;
            movingTile = new SimpleSprite("Menu/TILEME", constants.SIMPLE_SPRITE_BEHAVIOR.RSCROLL);
            pressStartBlink = new SimpleSprite("Menu/BLINK_START", constants.SIMPLE_SPRITE_BEHAVIOR.BLINKING, new Vector2(258, 676));

            // These are the strings used in the main menu
            menuItems = new String[constants.MENU_SIZE] { "ARCADE", "HORSEWASH", "JABBERWOCKY", "QUIT" };
            mScreenWat = new SimpleSprite("Menu/door", constants.SIMPLE_SPRITE_BEHAVIOR.MANUAL, new Vector2(600, 100));

            // Character select
            portraits = new Texture2D[constants.NUM_CHARACTERS];
            sCharacters = new String[constants.NUM_CHARACTERS] { "john", "john", "jack", "jack" };
            playerOneSelect = new SimpleSprite("Menu/Char_Select/player_select", constants.SIMPLE_SPRITE_BEHAVIOR.CLIPPED, new Vector2(328, 590));
            playerOneSelect.ClipTangle = new Rectangle(0, 0, 160, 80);
            playerOneSelected = new List<AnimatedSprite>();
        }
Example #2
0
        public void Load(ContentManager globManager)
        {
            Player1.Load(globManager);
            Player2.Load(globManager);

            levelBG = globManager.Load<Texture2D>("Level/testBG");
            mainFont = globManager.Load<SpriteFont>("Menu/mainFont");

            round_ind = globManager.Load<Texture2D>("Level/round_ind");

            // sets up the round indicators.
            const int INDICATORS_HEIGHT = 60;
            for (int i = 0; i < roundIndicators.Length; i++)
            {
                if (i < (roundIndicators.Length / 2))
                {
                    roundIndicators[i] = new SimpleSprite(round_ind, constants.SIMPLE_SPRITE_BEHAVIOR.CLIPPED,
                        new Vector2(628 - ((i + 1) * 40) - (i * 5), INDICATORS_HEIGHT));
                }
                else
                {
                    roundIndicators[i] = new SimpleSprite(round_ind, constants.SIMPLE_SPRITE_BEHAVIOR.CLIPPED,
                        new Vector2(630 + 16 + ((i % 2) * 40) + (i * 5), INDICATORS_HEIGHT));
                }
                roundIndicators[i].ClipTangle = new Rectangle(0, 0, 40, 40);
                roundIndicators[i].refreshClipping();
            }
        }