Spawn more debris
This commit is contained in:
@@ -183,7 +183,7 @@ namespace EvilSatellites.Screens
|
||||
if (Input.IsJustPressed(Keys.H))
|
||||
{
|
||||
_player.PlayTap();
|
||||
Tolk.Output(_player.Health.ToString() + " health", true);
|
||||
Tolk.Output(Math.Round(_player.Health).ToString() + " health", true);
|
||||
}
|
||||
if (Input.IsJustPressed(Keys.X))
|
||||
{
|
||||
@@ -193,7 +193,17 @@ namespace EvilSatellites.Screens
|
||||
if (Input.IsJustPressed(Keys.Y))
|
||||
{
|
||||
_player.PlayTap();
|
||||
if (ObjectRadar.Target != null) Tolk.Output(Vector3.Distance(_player.Position, ObjectRadar.Target.Position).ToString() + " units", true);
|
||||
if (ObjectRadar.Target != null)
|
||||
{
|
||||
Tolk.Output(Math.Round(Vector3.Distance(_player.Position, ObjectRadar.Target.Position)).ToString() + " units", true);
|
||||
var radarYaw = (float)System.Math.Atan2(ObjectRadar.RadarOrientation.M13, ObjectRadar.RadarOrientation.M33);
|
||||
var radarPitch = (float)System.Math.Asin(-ObjectRadar.RadarOrientation.M23);
|
||||
var playerYaw = (float)System.Math.Atan2(_player.Rotation.M13, _player.Rotation.M33);
|
||||
var playerPitch = (float)System.Math.Asin(-_player.Rotation.M23);
|
||||
var totalYaw = MathHelper.ToDegrees(MathHelper.WrapAngle(radarYaw - playerYaw + MathHelper.Pi));
|
||||
var totalPitch = MathHelper.ToDegrees(MathHelper.WrapAngle(radarPitch - playerPitch));
|
||||
Tolk.Output(Math.Round(totalYaw).ToString() + " horizontal, " + Math.Round(totalPitch).ToString() + " vertical");
|
||||
}
|
||||
}
|
||||
if (Input.IsJustPressed(Keys.O))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user