Exemplo n.º 1
0
        public menuScreen(Game game, Texture2D _menuBack, Texture2D _menuGameName, Texture2D Me, Texture2D Meright, Texture2D en,
            Texture2D _menuTxtStartGame, Texture2D _menuTxtScore, Texture2D _menuTxtExit,
            Rectangle _menuTxtStartGameR, Rectangle _menuTxtScoreR, Rectangle _menuTxtExitR)
            : base(game)
        {
            // TODO: Construct any child components here
            menuBack = _menuBack;
            menuGameName = _menuGameName;
            menuBackR = new Rectangle(0, 0, 600, 900);
            menuTxtStartGame = _menuTxtStartGame;
            menuTxtStartGameR = _menuTxtStartGameR;
            menuTxtScore = _menuTxtScore;
            menuTxtScoreR = _menuTxtScoreR;
            menuTxtExit = _menuTxtExit;
            menuTxtExitR = _menuTxtExitR;
            this.Meleft = Me;
            this.Meright = Meright;
            this.en = en;

            menu = new menu[3];

            menu[0] = new menu(game, menuTxtStartGame, menuTxtStartGameR, Color.Wheat);
            menu[1] = new menu(game, menuTxtScore, menuTxtScoreR, Color.White);
            menu[2] = new menu(game, menuTxtExit, menuTxtExitR, Color.White);
        }
Exemplo n.º 2
0
        public menuScreen(Game game, Texture2D _menuBack, Texture2D _menuGameName, Texture2D Me, Texture2D Meright, Texture2D en,
                          Texture2D _menuTxtStartGame, Texture2D _menuTxtScore, Texture2D _menuTxtExit,
                          Rectangle _menuTxtStartGameR, Rectangle _menuTxtScoreR, Rectangle _menuTxtExitR)
            : base(game)
        {
            // TODO: Construct any child components here
            menuBack          = _menuBack;
            menuGameName      = _menuGameName;
            menuBackR         = new Rectangle(0, 0, 600, 900);
            menuTxtStartGame  = _menuTxtStartGame;
            menuTxtStartGameR = _menuTxtStartGameR;
            menuTxtScore      = _menuTxtScore;
            menuTxtScoreR     = _menuTxtScoreR;
            menuTxtExit       = _menuTxtExit;
            menuTxtExitR      = _menuTxtExitR;
            this.Meleft       = Me;
            this.Meright      = Meright;
            this.en           = en;

            menu = new menu[3];

            menu[0] = new menu(game, menuTxtStartGame, menuTxtStartGameR, Color.Wheat);
            menu[1] = new menu(game, menuTxtScore, menuTxtScoreR, Color.White);
            menu[2] = new menu(game, menuTxtExit, menuTxtExitR, Color.White);
        }