Example #1
0
        public static Texture2D Solid; //A 1x1 pixel white texture

        public static void Load(ContentManager content, GraphicsDevice graphicsDevice)
        {
            Error  = content.Load <Texture2D>("Error");
            Player = content.Load <Texture2D>("player");

            Textures.Solid = new Texture2D(graphicsDevice, 1, 1, false, SurfaceFormat.Color);
            Textures.Solid.SetData <Color>(new Color[1] {
                Color.White
            });

            Blocks.Load(content);
            Backgrounds.Load(content);
            Fonts.Load(content);
            Items.Load(content);
            UI.Load(content);
        }