Example #1
0
        // 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);
        }
Example #2
0
 public static void SetMainGame(MonoGame1 game)
 {
     MainGame = game;
     Content = game.Content;
 }
Example #3
0
 static void Main()
 {
     using (var game = new MonoGame1())
         game.Run();
 }