public GamePage(LaunchActivatedEventArgs args) { this.InitializeComponent(); // Create the game. _game = XamlGame<Game1>.Create(args, Window.Current.CoreWindow, this); }
// Constructor public GamePage() { InitializeComponent(); _game = XamlGame<Game1>.Create("", this); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
static void Main() { using (var game = new Game1()) game.Run(); }