// 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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }