예제 #1
0
        public AnimationTimer(frmMemoryscape gameRef)
        {
            // Store reference of main game in 'game'
            game = gameRef;

            // lock the buttons while animating AI
            game.ButtonLock(false);

            // Start animation
            Start();
        }
예제 #2
0
        /// <summary>
        /// Resets the game
        /// </summary>
        public void ResetGame(frmMemoryscape game)
        {
            // Reset various properties and lists on Game Over
            Tap.TotalTapsAvailable = 0;
            IsGameOver             = false;
            TapList.Clear();
            Score = 0;

            game.pnlDifficulty.Enabled = true;
            game.lblScore.Text         = "0";
            game.ButtonLock(false);
            game.ButtonIndex = 0;
        }