private static void Main() { using (var game = new TankGame()) { game.Run(); } }
/// <summary> /// checks if any buttons are clicked and does the appropriate action /// </summary> /// <param name="game">The TankGame object.</param> public static void Update(TankGame game) { //chekc if play again button is pressed if (playBtn.Update()) { //go to game scene TankGame.State = GameState.Game; } //chekc if quit button is pressed if (quitBtn.Update()) { //Exit game game.Exit(); } //chekc if instructions button is pressed if (instructionBtn.Update()) { //go to instructions scene TankGame.State = GameState.Instructions; } }