7-15-25@3:02am

This commit is contained in:
2025-07-15 03:02:30 -04:00
parent 5141a611fb
commit 022f0948db
6 changed files with 187 additions and 87 deletions

View File

@@ -1,5 +1,6 @@
using Godot;
using System;
using System.Data;
public partial class Ball : RigidBody2D
{
@@ -26,9 +27,7 @@ public partial class Ball : RigidBody2D
public override void _Ready()
{
SetProcess(false);
_placed = false;
_available = false;
_available = true;
_hovered = false;
_selected = false;
_aimed = false;
@@ -53,28 +52,26 @@ public partial class Ball : RigidBody2D
}
}
if (!Globals.Instance._anyMovement)
{
if (!_available)
{
_available = true;
}
}
else
if (Globals.Instance._anyMovement)
{
if (_available)
{
_available = false;
}
}
else
{
if (!_available)
{
_available = true;
}
}
}
public void Place(Vector2 POSITION)
{
_placed = true;
Position = POSITION;
SetProcess(true);
}
private void OnMouseEntered()