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 (); }
public SimulatedControls(Game1 game) { Basic1 = false; Special1 = false; Special2 = false; Left = false; Right = false; JumpHeld = false; Down = false; }
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; }
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; }
static void Main() { using (var game = new Game1()) game.Run(); }