This is the main type for your game.
Inheritance: Microsoft.Xna.Framework.Game
コード例 #1
0
ファイル: Main.cs プロジェクト: HarkerGameDev/ClubFair
 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 ();
 }
コード例 #2
0
ファイル: GameData.cs プロジェクト: HarkerGameDev/TheGame
 public SimulatedControls(Game1 game)
 {
     Basic1 = false;
     Special1 = false;
     Special2 = false;
     Left = false;
     Right = false;
     JumpHeld = false;
     Down = false;
 }
コード例 #3
0
ファイル: GameData.cs プロジェクト: HarkerGameDev/TheGame
 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;
 }
コード例 #4
0
ファイル: GameData.cs プロジェクト: HarkerGameDev/TheGame
 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;
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: HarkerGameDev/ClubFair
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }