示例#1
0
文件: Menu.cs 项目: qpfiffer/Fighter
        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>();
        }
示例#2
0
文件: Menu.cs 项目: qpfiffer/Fighter
 /// <summary>
 /// Intermediate constructor which will display with a given state;
 /// </summary>
 /// <param name="newState">What type of gamestate you want this hud to use.</param>
 public Menu(constants.GAMESTATE newState)
 {
     currentState = newState;
 }
示例#3
0
文件: Menu.cs 项目: qpfiffer/Fighter
 public void confirmMenuItem()
 {
     if (currentState == constants.GAMESTATE.MENU)
     {
         if (menuItems[cMenuItem].Equals("ARCADE"))
         {
             currentState = constants.GAMESTATE.CHAR_SELECT;
             return;
         }
         else if (menuItems[cMenuItem].Equals("QUIT"))
         {
             currentState = constants.GAMESTATE.QUIT;
             return;
         }
     }
     else if (currentState == constants.GAMESTATE.CHAR_SELECT)
     {
         _P1Char = sCharacters[cCharItem];
     }
 }