7-21-25 @ 3:17 am
This commit is contained in:
@@ -62,7 +62,7 @@ public partial class Battle : Node
|
||||
for (int j = 0; j <= columns; j++)
|
||||
{
|
||||
Vector2 position = new Vector2(table.GlobalPosition.X - (i * (diameter / 2)) + (j * (diameter)), table.GlobalPosition.Y - table.Texture.GetSize().Y / 4 - (i * diameter));
|
||||
Ball ball = Ball._Create(count);
|
||||
SupportBall ball = SupportBall._Create(count);
|
||||
ball.Place(position);
|
||||
AddChild(ball);
|
||||
|
||||
@@ -108,23 +108,24 @@ public partial class Battle : Node
|
||||
}
|
||||
else
|
||||
{
|
||||
Panel pottedPanel = GetNode<Panel>("PottedPanel");
|
||||
Sprite2D ballSprite = new Sprite2D();
|
||||
AddChild(ballSprite);
|
||||
ballSprite.Texture = BODY.GetNode<Sprite2D>("Image").Texture;
|
||||
_potted.Add(ballSprite);
|
||||
ballSprite.Position = new Vector2(pottedPanel.Position.X + pottedPanel.Size.X / 2, pottedPanel.Position.Y + (50 * _potted.Count));
|
||||
// Panel pottedPanel = GetNode<Panel>("PottedPanel");
|
||||
// Sprite2D ballSprite = new Sprite2D();
|
||||
// AddChild(ballSprite);
|
||||
// ballSprite.Texture = BODY.GetNode<Sprite2D>("Image").Texture;
|
||||
// _potted.Add(ballSprite);
|
||||
// ballSprite.Position = new Vector2(pottedPanel.Position.X + pottedPanel.Size.X / 2, pottedPanel.Position.Y + (50 * _potted.Count));
|
||||
((Ball)BODY)._placed = false;
|
||||
((Ball)BODY)._potted = true;
|
||||
BODY.QueueFree();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void Start()
|
||||
{
|
||||
_current = true;
|
||||
GenerateBalls();
|
||||
Globals.Instance._currentBattle = this;
|
||||
_player.Start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user