Tuesday, 05 August 2025 01:43:58

This commit is contained in:
2025-08-05 01:44:03 -04:00
parent 7f65338679
commit 33db2a63a2
25 changed files with 456 additions and 596 deletions

22
Gameplay/Pocket.cs Normal file
View File

@@ -0,0 +1,22 @@
using Godot;
using System;
public partial class Pocket : Area2D
{
[Signal]
public delegate void OnBallPottedEventHandler(Ball BALL, Pocket THIS);
public override void _Ready()
{
BodyEntered += BallPotted;
}
public void BallPotted(Node NODE)
{
if (NODE is Ball)
{
EmitSignal(SignalName.OnBallPotted, (Ball)NODE, this);
}
}
}