コード例 #1
0
ファイル: Program.cs プロジェクト: HatchAndRoler/Pong
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: Activity1.cs プロジェクト: joshuarose/Pong
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            Game1.Activity = this;

            var game = new Game1();
            SetContentView(game.Window);
            game.Run();
        }
コード例 #3
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

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

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
コード例 #4
0
ファイル: Main.cs プロジェクト: violentmonk/Pong
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new Game1 ();
     game.Run ();
 }
コード例 #5
0
ファイル: Game1.cs プロジェクト: sillydan1/PongNetworked
 private Game1()
     : base()
 {
     rnd = new Random();
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     myContentUI = Content;
     instance = this;
 }
コード例 #6
0
ファイル: Form1.cs プロジェクト: alex45101/Pong
 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();
 }
コード例 #7
0
ファイル: Program.cs プロジェクト: PotaTW/Pong
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
コード例 #8
0
 private static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }