Add log levels to logger, update formats, use string as input argument for the message.

This commit is contained in:
2024-01-20 17:11:26 +01:00
parent 8abc17034c
commit a6e2bee975
2 changed files with 54 additions and 29 deletions

View File

@@ -8,7 +8,6 @@ public class TestPlayer : RectangleShape2d
{
base.OnStart();
Color = Color.Cyan;
_logger.Echo("OnStart");
_camera = new Camera2d()
{
@@ -29,10 +28,6 @@ public class TestPlayer : RectangleShape2d
Position += velocity * (float)dt;
_camera.Position = MathUtils.LerpVector2(_camera.Position, Position, dt * 5f);
// var mousePos = Input.GetMousePosition();
// Position = MathUtils.LerpVector2(Position, mousePos, dt * 5f);
// Rotation += (float)dt * 100f;
}
private Logger _logger = new(nameof(TestPlayer));