Basic gamepad with force feedback impl

This commit is contained in:
2021-04-24 02:47:17 +02:00
parent db9c3cceea
commit 9f66f9d8fb
109 changed files with 205 additions and 196 deletions
+1
View File
@@ -57,6 +57,7 @@ namespace EvilSatellites.Objects
if (player.Vacuuming)
{
player.CurrentWeapon.Reload(rnd.Next(player.CurrentWeapon.MaxAmmo/4));
Destroy();
GameStats.DebrisCollected++;
return;
+3 -1
View File
@@ -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();
}