示例#1
0
 public void PlayerDied(float x, float y)
 {
     //Explosion and soundeffect for when the player dies
     playerExplosion = new ExplosionView(new Vector2(x, y), boom, pScale * 2.0f);
     explosionSound.Play(0.1f, 1.0f, 0.0f);
 }
示例#2
0
 public void BossDies(float x, float y)
 {
     //Displays explosions on boss when it dies and plays soundeffect
     ExplosionView eView = new ExplosionView(new Vector2(x, y), boom, bScale);
     bossExplosionList.Add(eView);
     explosionSound.Play(0.2f, 0.0f, 0.0f);
 }
示例#3
0
 public void HitEnemy(float x, float y)
 {
     //Explosion animation on enemyship based on thier location and plays soundeffect aswell
     ExplosionView explosionView = new ExplosionView(new Vector2(x, y), boom, eScale * 2.5f);
     explosionList.Add(explosionView);
     explosionSound.Play(0.2f, 0.0f, 0.0f);
 }