Example #1
0
 public Game(string name, System.Windows.Forms.Control control)
 {
     Name = name;
     Options = new Options();
     try
     {
         Options = (Options)Util.LoadObjectXML("options.xml", typeof(Options));
     }
     catch { }
     Devices = new Devices(this, control);
 }
Example #2
0
        public Game(string name)
        {
            Name = name;
            Options = new Options();
            try
            {
                Options = (Options)Util.LoadObjectXML("options.xml", typeof(Options));
            }
            catch { }
            Devices = new Devices(this);
            Devices.GameWindow.FormClosing += new FormClosingEventHandler(GameWindowClosing);
            Devices.GameWindow.Paint += new PaintEventHandler(GameWindowPaint);

            if (Options.FullScreen)
            {
                ToggleToFullScreen();
            }
        }