Basic gamepad with force feedback impl
This commit is contained in:
@@ -57,6 +57,7 @@ namespace EvilSatellites.Objects
|
||||
if (player.Vacuuming)
|
||||
{
|
||||
player.CurrentWeapon.Reload(rnd.Next(player.CurrentWeapon.MaxAmmo/4));
|
||||
|
||||
Destroy();
|
||||
GameStats.DebrisCollected++;
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace EvilSatellites.Objects
|
||||
ShouldDestroy = false;
|
||||
Active = true;
|
||||
Type = ObjectType.Player;
|
||||
Position = new Vector3(5000, 5000, 4990);
|
||||
Position = new Vector3(25000, 25000, 25000);
|
||||
Dimensions = new Vector3(5, 5, 5);
|
||||
Movement = new Vector3(0, 0, 0);
|
||||
Rotation = Matrix.Identity;
|
||||
@@ -203,10 +203,12 @@ namespace EvilSatellites.Objects
|
||||
}
|
||||
dmgSound += "/int/" + (rnd.Next(2)+1).ToString()+".wav";
|
||||
Screen.Manager.Sound.PlayOneshot(dmgSound);
|
||||
Screen.Manager.Vibrations.AddVibration(1, 1, 500);
|
||||
if (Health < 1)
|
||||
{
|
||||
Destroy();
|
||||
Screen.Manager.Sound.PlayOneshot(@"sfx/physics/crashes/1.wav");
|
||||
Screen.Manager.Vibrations.AddVibration(1, 1, 1000);
|
||||
var scr = (GameScreen)Screen;
|
||||
scr.EndGame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user