コード例 #1
0
ファイル: Game.cs プロジェクト: nusisschad/XNAGameStudio
 static void Main()
 {
     using (NetworkStateManagementGame game = new NetworkStateManagementGame())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: kjpou1/MonoGame-Samples
 static void Main(string[] args)
 {
     using (NetworkStateManagementGame game = new NetworkStateManagementGame())
     {
         game.Run();
     }
 }
コード例 #3
0
        /// <summary>
        /// The main game constructor.
        /// </summary>
        public NetworkStateManagementGame()
        {
            Content.RootDirectory = "Content";

            graphics = new GraphicsDeviceManager(this);

            
            // Create components.
            screenManager = new ScreenManager(this);

            Components.Add(screenManager);
            Components.Add(new MessageDisplayComponent(this));
            Components.Add(new GamerServicesComponent(this));

            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);

            // Listen for invite notification events.
            NetworkSession.InviteAccepted += (sender, e) => NetworkSessionComponent.InviteAccepted(screenManager, e);

            // To test the trial mode behavior while developing your game,
            // uncomment this line:

            // Guide.SimulateTrialMode = true;

            if (NetworkStateManagementGame.MainGame == null) NetworkStateManagementGame.MainGame = this;
        }
コード例 #4
0
        /// <summary>
        /// The main game constructor.
        /// </summary>
        public NetworkStateManagementGame()
        {
            Content.RootDirectory = "Content";

            graphics = new GraphicsDeviceManager(this);

            // Create components.
            screenManager = new ScreenManager(this);

            Components.Add(screenManager);
            Components.Add(new MessageDisplayComponent(this));
            Components.Add(new GamerServicesComponent(this));

            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);

            // Listen for invite notification events.
            NetworkSession.InviteAccepted += (sender, e) => NetworkSessionComponent.InviteAccepted(screenManager, e);

            // To test the trial mode behavior while developing your game,
            // uncomment this line:

            // Guide.SimulateTrialMode = true;

            if (NetworkStateManagementGame.MainGame == null) NetworkStateManagementGame.MainGame = this;
        }
コード例 #5
0
        public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
        {
            NetworkStateManagementGame game = new NetworkStateManagementGame();

            game.Run();
        }
コード例 #6
0
ファイル: Program.cs プロジェクト: Nailz/MonoGame-Samples
		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
		{
			NetworkStateManagementGame game = new NetworkStateManagementGame ();
			game.Run ();
		}