// This constructor loads the level from file. // The name must include the extension .lvl. public Level(string fName, MonoGame1 game) { this.game = game; worldEnts = new List<Entity>(); string pathPrefix = GameConstants.Paths.Levels; string fullPath = Path.Combine(pathPrefix, fName); LoadLevel(fullPath); }
public static void SetMainGame(MonoGame1 game) { MainGame = game; Content = game.Content; }
static void Main() { using (var game = new MonoGame1()) game.Run(); }