2D multiplayer platformer using Godot Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

22 lines
496 B

using Godot;
public class Cursor : Node2D
{
public override void _Ready()
{
Input.SetMouseMode(Input.MouseMode.Hidden);
}
public override void _Notification(int what)
{
switch (what) {
case MainLoop.NotificationWmMouseEnter: Visible = true; break;
case MainLoop.NotificationWmMouseExit: Visible = false; break;
}
}
public override void _Process(float delta)
{
Position = GetGlobalMousePosition();
}
}