Exemple #1
0
        static void Main()
        {
            // Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //try
            //{
                Game game = new Game();
                GameForm gf;
                gf = new GameForm(game);
                Thread t = new Thread(new ParameterizedThreadStart(game.Start));
                t.Name = "GameLoop";
                t.IsBackground = true;
                t.TrySetApartmentState(ApartmentState.STA);
                t.Start(gf);

                //Thread tt = new Thread(new ThreadStart(gf.Show2));
                //tt.Start();
                gf.Init();
            //}
            //catch (Exception e) { MessageBox.Show(e.Message + e.InnerException + e.Source + e.StackTrace); }

            //if (t.ThreadState == ThreadState.Running)
             //   t.Abort();

            //Application.Run(new GameForm());
        }
Exemple #2
0
 public GameForm(Game g)
     : base("Project Majestic")
 {
     // TODO: Complete member initialization
     this.Game = g;
     //this.Show2();
 }
Exemple #3
0
 internal void Clicked(Game game)
 {
     throw new NotImplementedException();
 }