Exemple #1
0
        public override void getEaten(Player thePlayer)
        {
            Explosion theExplosion = new Explosion(xPos, yPos, Game1.explosionTexture, false);
            Game1.explosions.Add(theExplosion);

            Game1.explosion.Play();
        }
Exemple #2
0
        public override void getEaten(Player thePlayer)
        {
            thePlayer.Health -= damageDone;

            Explosion theExplosion = new Explosion(xPos, yPos, explosionTexture, true);
            Game1.explosions.Add(theExplosion);

            Game1.explosion.Play();
        }