Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            Game1.Activity = this;

            var game = new Game1();
            SetContentView(game.Window);
            game.Run();
        }
Esempio n. 3
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame<Game1>.Create("", XnaSurface);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Esempio n. 4
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new Game1 ();
     game.Run ();
 }
Esempio n. 5
0
 private Game1()
     : base()
 {
     rnd = new Random();
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     myContentUI = Content;
     instance = this;
 }
Esempio n. 6
0
 void StartGame(object param)
 {
     object[] parameters = (object[])param;
     Game1 theGame = new Game1();
     theGame.signInAs(parameters[0].ToString());
     if (parameters[1] != null)
     {
         theGame.setSteveIcon(new StreamReader(parameters[1].ToString()).BaseStream);
     }
     theGame.Window.Title = "Pong";
     theGame.Run();
 }
Esempio n. 7
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
Esempio n. 8
0
 private static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }