Exemplo n.º 1
0
        //Switches to the last room
        public void SelectRoomTwo()
        {
            BaseRoom room = Game1.mainGame.GetRoom("GameRoom");

            if (room.GetType().Equals(typeof(GameRoom)))
            {
                GameRoom game = (GameRoom)room;
                game.SetBuild(1);
                game.Reset();
                Game1.mainGame.SwitchRooms("GameRoom");
            }
        }
Exemplo n.º 2
0
        //Updates all the buttons
        public override void Update(GameTime gameTime)
        {
            BaseRoom room = Game1.mainGame.GetRoom("GameRoom");

            if (room.GetType().Equals(typeof(GameRoom)))
            {
                GameRoom      game  = (GameRoom)room;
                KeyboardState state = Keyboard.GetState();
                selectL.Update(gameTime);
                selectR.Update(gameTime);
                PlayerSelect(game);
                select1.Update(gameTime);
                select2.Update(gameTime);
                Game1.mainGame.prevState = state;
            }
        }