/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
// 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(); }
internal static void RunGame () { game = new Game1 (); game.Run (); }
public void HandleEndLevel(Game1 game, Player p, Level l) { playerRectangle = new Rectangle((int)(p.X + 24 * p.Scale), (int)p.Y, (int)(9 * p.Scale), (int)(60 * p.Scale)); eolRectangle = new Rectangle((int)(l.endOflevel.X + 42), (int)l.endOflevel.Y, 10, 64); if (playerRectangle.Intersects(eolRectangle)) game.ChangeLevel = true; }