// Summary: Plays the hit sound effect and potentially draws the animation of a succesful hit
 private static void PlayHitSequence(int row, int column, bool showAnimation)
 {
     if (showAnimation)
     {
         UtilityFunctions.AddExplosion(row, column);
     }
     UtilityFunctions.PlaySFX("Hit");
     UtilityFunctions.DrawAnimationSequence();
 }
Пример #2
0
        private static void PlayMissSequence(int row, int column, bool showAnimation)
        {
            if (showAnimation)
            {
                UtilityFunctions.AddSplash(row, column);
            }

            Audio.PlaySoundEffect(GameResources.GameSound("Miss"));

            UtilityFunctions.DrawAnimationSequence();
        }
Пример #3
0
        private static void PlayHitSequence(int row, int column, bool showAnimation)
        {
            if (showAnimation)
            {
                UtilityFunctions.AddExplosion(row, column);
            }

            Audio.PlaySoundEffect(GameResources.GameSound("Hit"));

            UtilityFunctions.DrawAnimationSequence();
        }
        // Summary: Plays the miss sound effect and potentially draws the animation of a miss
        private static void PlayMissSequence(int row, int column, bool showAnimation)
        {
            if (showAnimation)
            {
                UtilityFunctions.AddSplash(row, column);
            }

            UtilityFunctions.PlaySFX("Miss");

            UtilityFunctions.DrawAnimationSequence();
        }