Rewritten camera to follow cursor

This commit is contained in:
Marco 2025-05-07 11:36:03 +02:00
commit 869a3b4c06
7 changed files with 232 additions and 9 deletions

View file

@ -0,0 +1,16 @@
using Godot;
namespace Cirno.Scripts.Misc;
public partial class CameraTarget : Node2D
{
public override void _Ready()
{
// register with the controller
var res = GetTree().GetFirstNodeInGroup("camera_controllers");
if (res is not null && res is CameraController cameraController)
{
cameraController.RegisterTarget(this);
}
}
}