Ejemplo n.º 1
0
 /// <summary>
 /// This method starts the game cycle.
 /// </summary>
 public static void Main()
 {
     using (AvateeringXNA game = new AvateeringXNA())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This method starts the game cycle.
 /// </summary>
 public static void Main()
 {
     using (AvateeringXNA game = new AvateeringXNA())
     //using (XnaBasics game = new XnaBasics())
     {
         game.Run();
     }
 }
              static void Main()
            
            {
             

             
               


                /**
                //initialize Thread for Custom menu
                var tCustomize = new Thread(new ThreadStart(() =>{ customizeMenu = new ControlsBasics.App(); customizeMenu.InitializeComponent(); customizeMenu.Run(); })); tCustomize.SetApartmentState(ApartmentState.STA);
                //initialize Thread for Avatar Game 
                var tPlay = new Thread(new ThreadStart(() =>{ game = new AvateeringXNA(); game.Run(); }));tPlay.SetApartmentState(ApartmentState.STA);
                **/
                
                 splash = new SplashScreen("images/title.png");
                splash.Show(true);            
               


                customizeMenu = new ControlsBasics.App(); 
                customizeMenu.InitializeComponent();


          
                    customizeMenu.Run();
             

                
                Class2 data = Class2.stance();

                 av1 =data.av1;

               av2=data.av2;

               sc=data.sc;


               game = new AvateeringXNA(); 
               game.Run();



            }