Beispiel #1
0
        public Game()
        {
            //Init
            map.Generate();
            map.Save(Environment.CurrentDirectory + "/" + Program.MapFile);

            //
            //if (!System.IO.File.Exists (Environment.CurrentDirectory + "/" + Program.MapFile)) {
            //	map.Generate ();
            //} else
            //	map.Load(Environment.CurrentDirectory + "/" + Program.MapFile);
            entityHandler        = new EntityHandler();
            entityHandler.parent = this;
        }
Beispiel #2
0
        public Game()
        {
            //Init
            map.Generate ();
            map.Save (Environment.CurrentDirectory + "/" + Program.MapFile);

            //
            //if (!System.IO.File.Exists (Environment.CurrentDirectory + "/" + Program.MapFile)) {
            //	map.Generate ();
            //} else
            //	map.Load(Environment.CurrentDirectory + "/" + Program.MapFile);
            entityHandler = new EntityHandler();
            entityHandler.parent = this;
        }