Ejemplo n.º 1
0
        private void LoadContent_Bench(ContentManager Content)
        {
            benchMask          = Content.Load <Texture2D>("Bench/benchGridMask");
            benchMaskPixelData = UiTools.CreateColorMask(benchMask);

            //bench uses existing hexgrid class to attain same appearance - structure is handled within the player class.
            bench = new HexGrid(turnPlayer.GetBenchUnits().Length, 1, screenBoardOrigin - HexGrid.OddToEvenRowOffset * boardScaleVector + 5 * Vector2.One * boardScaleVector, boardScale);

            benchMaskOrigin = bench.GetMaskOrigin();
        }
Ejemplo n.º 2
0
        private void LoadContent_Grid(ContentManager Content)
        {
            isoTile        = Content.Load <Texture2D>("Board/isoTile");
            hoveredIsoTile = Content.Load <Texture2D>("Board/hoveredIsoTile");

            isoGridMask          = Content.Load <Texture2D>("Board/isoGridMask");
            isoGridMaskPixelData = UiTools.CreateColorMask(isoGridMask); //pixelData;

            gridMaskOrigin = grid.GetMaskOrigin();
        }