diff --git a/BoundingBoxes/ConnectorBox.cs b/BoundingBoxes/ConnectorBox.cs index fa962af..049c754 100644 --- a/BoundingBoxes/ConnectorBox.cs +++ b/BoundingBoxes/ConnectorBox.cs @@ -35,7 +35,6 @@ public partial class ConnectorBox : Area2D { BodyEntered += (Node2D body) => { - GD.Print(body.Name + " entered"); if (body is Player && InteractionTrigger is null) { OnInteraction(); diff --git a/BoundingBoxes/Hurtbox.cs b/BoundingBoxes/Hurtbox.cs index 0d661d5..449b3a3 100644 --- a/BoundingBoxes/Hurtbox.cs +++ b/BoundingBoxes/Hurtbox.cs @@ -30,7 +30,6 @@ public partial class Hurtbox : BoundingBox, IFaction { InvincibilityTimer.Timeout += () => { - GD.Print("invincibility off"); Monitorable = true; }; } @@ -77,7 +76,6 @@ public partial class Hurtbox : BoundingBox, IFaction InvincibilityTimer.Start(); //Monitorable = false; SetDeferred("monitorable", false); - GD.Print("invincible"); } EmitSignal( diff --git a/Characters/Character.cs b/Characters/Character.cs index 168b31d..13a5fc7 100644 --- a/Characters/Character.cs +++ b/Characters/Character.cs @@ -344,7 +344,6 @@ public partial class Character : CharacterBody2D, IFaction if (this.GetNode("Effects/HurtSound") is AudioStreamPlayer2D sound) { // very small pitch deviation - GD.Print("hurt sound"); sound.At(GlobalPosition).WithPitchDeviation(0.125f).PlayOneShot(); } diff --git a/Characters/Player.cs b/Characters/Player.cs index 18702fc..16c4a8e 100644 --- a/Characters/Player.cs +++ b/Characters/Player.cs @@ -25,11 +25,6 @@ public sealed partial class Player : Character public override void _Ready() { InteractionRay = GetNode("Direction2D/InteractionRay"); - Death += async (Events.HurtArgs args) => - { - HurtAnimation.Play("death"); - await ToSignal(HurtAnimation, "animation_finished"); - }; base._Ready(); @@ -101,8 +96,7 @@ public sealed partial class Player : Character public override void Die() { - GD.Print("died"); - //base.Die(); + HurtAnimation.Play("death"); } protected override void DrawTarget() diff --git a/Entities/DynamicDoor.cs b/Entities/DynamicDoor.cs index f652586..97e8cd7 100644 --- a/Entities/DynamicDoor.cs +++ b/Entities/DynamicDoor.cs @@ -71,7 +71,6 @@ public partial class DynamicDoor : StaticBody2D { if (anim.TrackGetPath(i) == nodePath) { - GD.Print($"Disabled anim for {nodePath}"); anim.TrackSetEnabled(i, isEnabled); } } diff --git a/Items/Inventory.cs b/Items/Inventory.cs index 56ef5aa..321a9a7 100644 --- a/Items/Inventory.cs +++ b/Items/Inventory.cs @@ -50,7 +50,6 @@ public partial class Inventory : Node2D { if (child is Item item) { - GD.Print("Adding item " + item.Name); AddItem(item); } } diff --git a/Items/Weapons/ProjectileSpawner.cs b/Items/Weapons/ProjectileSpawner.cs index e2cee4b..89cafad 100644 --- a/Items/Weapons/ProjectileSpawner.cs +++ b/Items/Weapons/ProjectileSpawner.cs @@ -92,7 +92,6 @@ public partial class ProjectileSpawner : Ranged for (int i = 0; i < ProjectileCount; i++) { float curDeviation = -i + maxAngleDeviations; - GD.Print(curDeviation); SpawnProjectile(map, target.Rotated(curDeviation * theta)); } } diff --git a/Utils/Physics.cs b/Utils/Physics.cs index 239532a..80fa2e6 100644 --- a/Utils/Physics.cs +++ b/Utils/Physics.cs @@ -23,12 +23,9 @@ public static class Physics var relVel = relIdle + relDir * speed; var relSpeed = relVel.Length(); - GD.Print("Relative velocity: " + relVel); - // get t = time to travel // = (|s2| - |s1|)/(|v2| - |v1|) time = position.DistanceTo(targetPosition) / relSpeed; - GD.Print("Time: " + time); // predict target's position after time t return targetPosition + targetVelocity * time; diff --git a/Utils/World.cs b/Utils/World.cs index 6446b00..6867df1 100644 --- a/Utils/World.cs +++ b/Utils/World.cs @@ -327,8 +327,6 @@ public partial class World : Node public void SpawnPlayer() { // TODO: add max health property - //CurrentPlayer.Health = 100; - //CurrentPlayer.Sprite.Visible = true; if (CurrentMap.SceneFilePath != GlobalState.Stats.SaveMapKey) { LoadScene(GlobalState.Stats.SaveMapKey);