/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> public static void HandleEndOfGameInput(uint time) { if (SwinGame.MouseClicked(MouseButton.LeftButton) || SwinGame.KeyTyped(KeyCode.vk_RETURN) || SwinGame.KeyTyped(KeyCode.vk_ESCAPE)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score, time); } }
/// <summary> /// ''' Handle the input during the end of the game. Different buttons do different things /// ''' </summary> public static void HandleEndOfGameInput() { Rectangle play = new Rectangle(); Rectangle cont = new Rectangle(); play.X = 315; play.Y = 345; play.Width = 90; play.Height = 25; cont.X = 415; cont.Y = 345; cont.Width = 75; cont.Height = 25; if (SwinGame.PointInRect(SwinGame.MousePosition(), play)) { SwinGame.FillRectangle(Color.Grey, play); if (SwinGame.MouseClicked(MouseButton.LeftButton)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); GameController.StartGame(); } } if (SwinGame.PointInRect(SwinGame.MousePosition(), cont)) { SwinGame.FillRectangle(Color.Grey, cont); if (SwinGame.MouseClicked(MouseButton.LeftButton)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); } } SwinGame.RefreshScreen(); }
/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> public static void HandleEndOfGameInput () { if (SwinGame.MouseClicked (MouseButton.LeftButton) || SwinGame.KeyTyped (KeyCode.vk_RETURN) || SwinGame.KeyTyped (KeyCode.vk_ESCAPE)) { HighScoreController.ReadHighScore (GameController.HumanPlayer.Score,GameController.HumanPlayer.MaxStreak); GameController.EndCurrentState (); } }
/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> /// <remarks> /// Isuru: Updated keycodes /// </remarks> public static void HandleEndOfGameInput() { if (SwinGame.KeyTyped(KeyCode.ReturnKey) || SwinGame.KeyTyped(KeyCode.EscapeKey)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); } }
// <summary> // Handle the input during the end of the game. Any interaction // will result in it reading in the highsSwinGame. // </summary> public static void HandleEndOfGameInput() { if ((SwinGame.MouseClicked(MouseButton.LeftButton) || (SwinGame.KeyTyped(KeyCode.ReturnKey) || SwinGame.KeyTyped(KeyCode.EscapeKey)))) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); // open highscore GameController.EndCurrentState(); } }
/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> public static void HandleEndOfGameInput() { if (SwinGame.MouseClicked(MouseButton.RightButton) || SwinGame.KeyTyped(KeyCode.vk_RETURN) || SwinGame.KeyTyped(KeyCode.vk_ESCAPE)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); Perform_Right_Click_Function(); } }
/// <summary> /// Handles the end of game input. /// </summary> public static void HandleEndOfGameInput() { if (SwinGame.MouseClicked(MouseButton.LeftButton) || SwinGame.KeyTyped(KeyCode.vk_RETURN) || SwinGame.KeyTyped(KeyCode.vk_ESCAPE)) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); } /* Handle the input during the end of the game. Any interaction * will result in it reading in the highsSwinGame.*/ }
/// <summary> /// Handle the input during the end of the game. Any interaction /// will result in it reading in the highsSwinGame. /// </summary> public static void HandleEndOfGameInput() { //string time = DateTime.Now.ToString("h:mm:ss "); var date = DateTime.Now.ToString("dd.MM.yyy"); var result = DialogResult.OK; if (SwinGame.MouseClicked(MouseButton.LeftButton) || SwinGame.KeyTyped(KeyCode.vk_RETURN) || SwinGame.KeyTyped(KeyCode.vk_ESCAPE)) { MessageBox.Show("Time : " + stopWatch.Elapsed.ToString("mm\\:ss\\.ff") + Environment.NewLine); if (result == DialogResult.OK) { HighScoreController.ReadHighScore(GameController.HumanPlayer.Score); GameController.EndCurrentState(); } } }