예제 #1
0
        public void AddPointsForEnemyHitByShell(IGameObject enemy)
        {
            int scoreToAdd = multilperForScore.DetermineShellHitSequence(enemy);

            score += scoreToAdd;
            FloatingScoreBar.CreateNewScoreAnimation(enemy, scoreToAdd);
        }
예제 #2
0
        public void AddPointsForFireballKoopaHit(IGameObject koopa)
        {
            int scoreToAdd = ScoreUtil.SpecialKoopaHitScore;

            score += scoreToAdd;
            FloatingScoreBar.CreateNewScoreAnimation(koopa, scoreToAdd);
        }
예제 #3
0
        public void AddPointsForEnemyBelowBlockHit(IGameObject enemy)
        {
            int scoreToAdd = ScoreUtil.EnemyBelowBlockHitScore;

            score += scoreToAdd;
            FloatingScoreBar.CreateNewScoreAnimation(enemy, scoreToAdd);
        }
예제 #4
0
        public void AddPointsForStompingEnemy(IGameObject enemy)
        {
            int scoreToAdd = multilperForScore.DetermineStompSequence();

            score += scoreToAdd;
            FloatingScoreBar.CreateNewScoreAnimation(enemy, scoreToAdd);
        }
예제 #5
0
        public void AddPointsForFinalPole(Rectangle marioDestination)
        {
            int scoreToAdd = ScoreUtil.OffTheFlagFifthScore;

            if (marioDestination.Y < ScoreUtil.FlagFirst)
            {
                scoreToAdd = ScoreUtil.OffTheFlagHighestScore;
            }
            else if (marioDestination.Y < ScoreUtil.FlagSecond)
            {
                scoreToAdd = ScoreUtil.OffTheFlagSecondScore;
            }
            else if (marioDestination.Y < ScoreUtil.FlagThird)
            {
                scoreToAdd = ScoreUtil.OffTheFlagThirdScore;
            }
            else if (marioDestination.Y < ScoreUtil.FlagForth)
            {
                scoreToAdd = ScoreUtil.OffTheFlagFourthScore;
            }
            score += scoreToAdd;
            FloatingScoreBar.CreateNewScoreAnimation(GameObjectManager.Instance.Mario, scoreToAdd);
        }
예제 #6
0
 public void AddPointsForCollectingItem(IGameObject item)
 {
     score += ScoreUtil.ItemCollectedScore;
     FloatingScoreBar.CreateNewScoreAnimation(item, ScoreUtil.ItemCollectedScore);
 }