Exemple #1
0
 public void AttachTexture(Texture2D Texture)
 {
     _SpriteSheet = null;
     _Texture = Texture;
     _Source.X = 0;
     _Source.Y = 0;
     _Source.Width = _Texture.Width;
     _Source.Height = Texture.Height;
 }
Exemple #2
0
        public void Load(ContentManager Content)
        {
            //  Backgrounds
            Background_Black = Content.Load<Texture2D>("Content/Images/Backgrounds/black.png");
            Background_Blue = Content.Load<Texture2D>("Content/Images/Backgrounds/blue.png");
            Background_Purple = Content.Load<Texture2D>("Content/Images/Backgrounds/purple.png");
            Background_PurpleDark = Content.Load<Texture2D>("Content/Images/Backgrounds/darkPurple.png");

            //Calibri_Font = Content.Load<SpriteFont>("Content/Fonts/Calibri");

            //  Ships
            Ships_SpriteSheet = new SpriteSheet();
            Ships_SpriteSheet.LoadTexture("Content/Images/Spritesheets/Ships.png", Content);
            Ships_SpriteSheet.LoadXML("Content/Images/Spritesheets/Ships.xml");

            //  UI
            UI_SpriteSheet = new SpriteSheet();
            UI_SpriteSheet.LoadTexture("Content/Images/Spritesheets/UI.png", Content);
            UI_SpriteSheet.LoadXML("Content/Images/Spritesheets/UI.xml");
        }
Exemple #3
0
 public void AttachSpriteSheet(SpriteSheet SpriteSheet)
 {
     _SpriteSheet = SpriteSheet;
     _Texture = SpriteSheet._Texture;
 }