Initial music impl
This commit is contained in:
@@ -58,10 +58,12 @@ namespace EvilSatellites.Objects
|
||||
{
|
||||
player.CurrentWeapon.Reload(rnd.Next(player.CurrentWeapon.MaxAmmo/4));
|
||||
Destroy();
|
||||
GameStats.DebrisCollected++;
|
||||
return;
|
||||
}
|
||||
player.TakeDamage(25);
|
||||
Destroy();
|
||||
GameStats.SatelliteCollisions++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,8 +207,8 @@ namespace EvilSatellites.Objects
|
||||
{
|
||||
Destroy();
|
||||
Screen.Manager.Sound.PlayOneshot(@"sfx/physics/crashes/1.wav");
|
||||
System.Threading.Thread.Sleep(2000);
|
||||
Environment.Exit(0);
|
||||
var scr = (GameScreen)Screen;
|
||||
scr.EndGame();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ namespace EvilSatellites.Objects
|
||||
Screen.Manager.Sound.PlayOneshot(@"sfx/satellite/"+SatelliteID.ToString()+"/explode.wav", new System.Numerics.Vector3(Position.X, Position.Y, Position.Z));
|
||||
SpawnDebris();
|
||||
Destroy();
|
||||
GameStats.SatellitesShot++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user