public void Update(GameTime gameTime, Game1 game) { if (Keyboard.GetState().IsKeyDown(Keys.Enter)) { //In full game, Changes Gamestate to InGame or equivalent. //As of this writing, my attemptsto pass through an enum state change have been fruitless, so for now just closes the game. game.Exit(); } }
static void Main(string[] args) { using (var game = new Game1()) game.Run(); }