Ejemplo n.º 1
0
 public XNAGameScreenView(Game game, GameBoard gameBoard, XNAGameBoard xnaGameBoard)
     : base(game)
 {
     contentManager = game.Content;
     this.gameBoard = gameBoard;
     darkSquare = contentManager.Load<Texture2D>(@"Textures\darksquare");
     lightSquare = contentManager.Load<Texture2D>(@"Textures\lightsquare");
     backGround = contentManager.Load<Texture2D>(@"Textures\background");
     crown = contentManager.Load<Texture2D>(@"Textures\crown");
     blackWins = contentManager.Load<Texture2D>(@"Textures\blackWins");
     whiteWins = contentManager.Load<Texture2D>(@"Textures\whiteWins");
     title = contentManager.Load<Texture2D>(@"Textures\Title");
     onePlayer = contentManager.Load<Texture2D>(@"Textures\1Player");
     twoPlayer = contentManager.Load<Texture2D>(@"Textures\2Player");
     yourTurn = contentManager.Load<Texture2D>(@"Textures\YourTurn");
     phoneTurn = contentManager.Load<Texture2D>(@"Textures\Thinking");
     playerOneTurn = contentManager.Load<Texture2D>(@"Textures\Player1Turn");
     playerTwoTurn = contentManager.Load<Texture2D>(@"Textures\Player2Turn");
     selectDifficulty = contentManager.Load<Texture2D>(@"Textures\SelectDifficulty");
     easy = contentManager.Load<Texture2D>(@"Textures\easy");
     normal = contentManager.Load<Texture2D>(@"Textures\normal");
     hard = contentManager.Load<Texture2D>(@"Textures\hard");
     whitePiece = contentManager.Load<Texture2D>(@"Textures\whitepiece");
     blackPiece = contentManager.Load<Texture2D>(@"Textures\blackPiece");
     whiteKingPiece = contentManager.Load<Texture2D>(@"Textures\whiteking");
     blackKingPiece = contentManager.Load<Texture2D>(@"Textures\blackking");
     possibleMove = contentManager.Load<Texture2D>(@"Textures\possibleMove");
     forceJumps = contentManager.Load<Texture2D>(@"Textures\ForceJumps");
     checkedBox = contentManager.Load<Texture2D>(@"Textures\checked");
     unCheckedBox = contentManager.Load<Texture2D>(@"Textures\unchecked");
     whiteTurn = contentManager.Load<Texture2D>(@"Textures\whiteTurn");
     blackTurn = contentManager.Load<Texture2D>(@"Textures\blackTurn");
     this.xnaGameBoard = xnaGameBoard;
 }
Ejemplo n.º 2
0
 protected override void Initialize()
 {
     gameBoard = new GameBoard();
     xnaGameBoard = new XNAGameBoard();
     xnaGameScreenView = new XNAGameScreenView(this, gameBoard, xnaGameBoard);
     //gameTurn = PlayerTurn.WhiteTurn;
     gameState = GameStates.TitleScreen;
     TouchPanel.EnabledGestures = GestureType.Tap;
     xnaGameScreenView.CreateHowManyPlayersButtons();
     xnaGameScreenView.CreateCheckBox();
     spriteBatch = new SpriteBatch(GraphicsDevice);
     base.Initialize();
 }