private void CreateShot() { // if nextShot is true create another one if (nextShot) { game.CreateOneShot(); nextShot = false; ShotDelayTimer.Stop(); ShotDelayTimer.Start(); } }
// method to start the game through starting gametime and method StartGame of class Game private void StartGame() { livesLabel.Visible = true; scoreLabel.Visible = true; // Start game timer GameTimer.Interval = Parameters.gameTimerInterval; GameTimer.Start(); // Start timer for delay between shots ShotDelayTimer.Interval = Parameters.milliSecondsPerShot; ShotDelayTimer.Start(); // Begin the game game.StartGame(); }