示例#1
0
 protected override void LoadContent()
 {
     base.LoadContent();
     Atlas = new Atlas(Path + @"Content/Atlas/atlas.xml", true);
     //SpriteData = new SpriteData(Path + @"Content/Atlas/SpriteData.xml", Atlas);
     Content.RootDirectory = Path + "Content";
     Font = Content.Load<SpriteFont>(@"Misc/pixel");
     Stats = GameStats.Init();
 }
示例#2
0
 public static GameStats Init()
 {
     GameStats instance = new GameStats();
     return instance;
 }