This is the main type for your game.
Inheritance: Microsoft.Xna.Framework.Game
Ejemplo n.º 1
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     // Handle a Xamarin.Mac Upgrade
     AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) => {
         if (a.Name.StartsWith ("MonoMac")) {
             return typeof(MonoMac.AppKit.AppKitFramework).Assembly;
         }
         return null;
     };
     game = new Game1 ();
     game.Run ();
 }
Ejemplo n.º 2
0
 public SimulatedControls(Game1 game)
 {
     Basic1 = false;
     Special1 = false;
     Special2 = false;
     Left = false;
     Right = false;
     JumpHeld = false;
     Down = false;
 }
Ejemplo n.º 3
0
 public KeyboardControls(Game1 game, Keys basic1, Keys special1, Keys special2, Keys left, Keys right, Keys jump, Keys down)
 {
     this.game = game;
     this.basic1 = basic1;
     this.special1 = special1;
     this.special2 = special2;
     this.left = left;
     this.right = right;
     this.jump = jump;
     this.down = down;
 }
Ejemplo n.º 4
0
 public GamePadControls(Game1 game, PlayerIndex playerIndex, Buttons basic1, Buttons special1, Buttons special2, Buttons left, Buttons right, Buttons jump, Buttons down)
 {
     this.game = game;
     this.playerIndex = playerIndex;
     this.basic1 = basic1;
     this.special1 = special1;
     this.special2 = special2;
     this.left = left;
     this.right = right;
     this.jump = jump;
     this.down = down;
 }
Ejemplo n.º 5
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }