/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. IniLoader gIni = new IniLoader("Content\\WIZZ.ini"); string firstLevel; gIni.GetString("startOnLevel", out firstLevel, "MAIN"); gIni.GetBool("drawNormals", out drawNormals, false); string levelPath; gIni.GetString("levelPath", out levelPath, Constants.LEVEL_PATH); spriteBatch = new SpriteBatch(GraphicsDevice); testLevel = GLEED2D.Level.FromFile(levelPath + firstLevel + ".xml", Content); Utilities.Init(Content); SuperHackyLevelParsing(); m_player = (Player)EntityManager.get().Create(EntityManager.ENT_TYPE.PLAYER); m_player.Init(Content); m_player.Spawn(); // TODO: use this.Content to load your game content here }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. IniLoader gIni = new IniLoader("Content\\WIZZ.ini"); string firstLevel; gIni.GetString("startOnLevel", out firstLevel,"MAIN"); gIni.GetBool("drawNormals", out drawNormals, false); string levelPath; gIni.GetString("levelPath", out levelPath, Constants.LEVEL_PATH); spriteBatch = new SpriteBatch(GraphicsDevice); testLevel = GLEED2D.Level.FromFile(levelPath + firstLevel + ".xml", Content); Utilities.Init(Content); SuperHackyLevelParsing(); m_player = (Player)EntityManager.get().Create(EntityManager.ENT_TYPE.PLAYER); m_player.Init(Content); m_player.Spawn(); // TODO: use this.Content to load your game content here }