예제 #1
0
 public SpriteSheet(XmlDocument doc, XmlElement parent, PokeSiGame game)
 {
     string fileName = (string)XmlHelper.GetSimpleNodeContent<string>("Path", parent, "");
     Texture = game.Content.Load<Texture2D>(fileName);
     Path = fileName;
     Sprites = new List<Sprite>();
 }
예제 #2
0
        public SpriteSheet(XmlDocument doc, XmlElement parent, PokeSiGame game)
        {
            string fileName = (string)XmlHelper.GetSimpleNodeContent <string>("Path", parent, "");

            Texture = game.Content.Load <Texture2D>(fileName);
            Path    = fileName;
            Sprites = new List <Sprite>();
        }
예제 #3
0
 public ScreenManager(PokeSiGame game)
 {
     Game    = game;
     Screens = new Stack <Screen>();
 }
예제 #4
0
        /*public int SpriteWidth { get; protected set; }
         * public int SpriteHeight { get; protected set; }
         * private int offsetX;
         * private int offsetY;*/

        public SpriteSheet(PokeSiGame game, string fileName)
        {
            Texture = game.Content.Load <Texture2D>(fileName);
            Path    = fileName;
            Sprites = new List <Sprite>();
        }
예제 #5
0
        /*public int SpriteWidth { get; protected set; }
        public int SpriteHeight { get; protected set; }
        private int offsetX;
        private int offsetY;*/

        public SpriteSheet(PokeSiGame game, string fileName)
        {
            Texture = game.Content.Load<Texture2D>(fileName);
            Path = fileName;
            Sprites = new List<Sprite>();
        }
예제 #6
0
 public ScreenManager(PokeSiGame game)
 {
     Game = game;
     Screens = new Stack<Screen>();
 }