Take and replenish health and ammo

This commit is contained in:
2021-04-19 23:37:40 +02:00
parent 671ed50a33
commit d69c05db1f
7 changed files with 48 additions and 5 deletions
+10 -1
View File
@@ -179,7 +179,16 @@ namespace EvilSatellites.Screens
Tolk.Output("Satellites");
}
}
if (Input.IsJustPressed(Keys.H))
{
_player.PlayTap();
Tolk.Output(_player.Health.ToString() + " health", true);
}
if (Input.IsJustPressed(Keys.X))
{
_player.PlayTap();
Tolk.Output(_player.CurrentWeapon.RemainingAmmo.ToString() + " rounds", true);
}
if (Input.IsJustPressed(Keys.O))
{
DavyKager.Tolk.Output(Objects.Count.ToString());