Esempio n. 1
0
        public void Consume(IPlayer player)
        {
            if (!consumed)
            {
                SoundEffects.Instance.PlayCoinSound();
                consumed = true;

                game.HUD.GetCoin();
                MovingText score = new MovingText(game, "200", Position);
                game.WorldLoader.MovingTexts.Add(score);
            }
        }
Esempio n. 2
0
        public void Consume(IPlayer player)
        {
            if (!consumed)
            {
                SoundEffects.Instance.PlayPowerUpSound();
                player.ToFire();
                consumed = true;

                game.HUD.GetScore(1000);
                MovingText score = new MovingText(game, "1000", Position);
                game.WorldLoader.MovingTexts.Add(score);
            }
        }
Esempio n. 3
0
        public void Consume(IPlayer player)
        {
            if (!consumed)
            {
                // Set player to star mode
                SoundEffects.Instance.PlayPowerUpSound();
                game.Mario = new MarioStar(game, game.Mario, 10000, true);
                consumed   = true;

                game.HUD.GetScore(1000);
                MovingText score = new MovingText(game, "1000", Position);
                game.WorldLoader.MovingTexts.Add(score);
            }
        }
Esempio n. 4
0
        public void Consume(IPlayer player)
        {
            if (!consumed)
            {
                SoundEffects.Instance.PlayPowerUpSound();
                if (player.State.Name != "Fire")
                {
                    player.ToBig();
                }
                consumed = true;

                game.HUD.GetScore(1000);
                MovingText score = new MovingText(game, "1000", this.Position);
                game.WorldLoader.MovingTexts.Add(score);
            }
        }