8-2-2025 @ 3:51 AM

This commit is contained in:
2025-08-02 03:51:34 -04:00
parent a8373726f9
commit 50e4f8fcb5
12 changed files with 348 additions and 86 deletions

31
Gameplay/BallSprite.cs Normal file
View File

@@ -0,0 +1,31 @@
using Godot;
using System;
public partial class BallSprite : Area2D
{
public bool _active = false, _hovered = false, _held = false;
public int _ownerId;
public string _imagePath;
public Vector2 _rackPosition = new Vector2(0, 0);
public void SetSprite(string PATH)
{
_imagePath = PATH;
GetNode<Sprite2D>("Image").Texture = GD.Load<Texture2D>(PATH);
}
private void OnMouseEntered()
{
if (_active)
{
_hovered = true;
}
}
private void OnMouseExited()
{
if (_active)
{
_hovered = false;
}
}
}