public GamePage() { this.InitializeComponent(); if (!Windows.Foundation.Metadata.ApiInformation .IsApiContractPresent("Windows.Phone.PhoneContract", 1)) { Windows.UI.ViewManagement.ApplicationView.GetForCurrentView() .TryResizeView(new Size(800, 480)); } var launchArguments = string.Empty; _game = XamlGame<TheGame> .Create(launchArguments, Window.Current.CoreWindow, swapChainPanel); }
public Catapult(Game game) : base(game) { curGame = (TheGame)game; }