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>(); }
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>(); }
public ScreenManager(PokeSiGame game) { Game = game; Screens = new Stack <Screen>(); }
/*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>(); }
/*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>(); }
public ScreenManager(PokeSiGame game) { Game = game; Screens = new Stack<Screen>(); }