Beispiel #1
0
        public void LoadContent()
        {
            textureGame  = UTILITIES.CreateBorderedTexture2D(Color.White, 5, Color.Black, 1450, 1950);
            textureScore = UTILITIES.CreateBorderedTexture2D(Color.White, 5, Color.Black, 525, 1900);

            playGrid.LoadContent();
        }
 public void LoadContent()
 {
     texture = UTILITIES.CreateBorderedTexture2D(Color.White, _padding, Color.Black, this.Dimensions.Width, this.Dimensions.Height);
     GLOBALS.Textures.RedSquareTexture    = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Red, _squareWidthHeight, _squareWidthHeight);
     GLOBALS.Textures.OrangeSquareTexture = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Orange, _squareWidthHeight, _squareWidthHeight);
     GLOBALS.Textures.YellowSquareTexture = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Yellow, _squareWidthHeight, _squareWidthHeight);
     GLOBALS.Textures.GreenSquareTexture  = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Green, _squareWidthHeight, _squareWidthHeight);
     GLOBALS.Textures.PurpleSquareTexture = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Purple, _squareWidthHeight, _squareWidthHeight);
     GLOBALS.Textures.PinkSquareTexture   = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Pink, _squareWidthHeight, _squareWidthHeight);
     GLOBALS.Textures.BlueSquareTexture   = UTILITIES.CreateBorderedTexture2D(Color.Gray, _padding, Color.Blue, _squareWidthHeight, _squareWidthHeight);
 }