7-31-25 @ 3:05AM
This commit is contained in:
26
Gameplay/ComputerManager.cs
Normal file
26
Gameplay/ComputerManager.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class ComputerManager : Manager
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
Ball newBall;
|
||||
// newBall = _ballScene.Instantiate<Ball>();
|
||||
// newBall.SetSprite("res://art/cue_ball.png");
|
||||
// _balls.Add(0, newBall);
|
||||
|
||||
for (int i = 8; i <= 15; i++)
|
||||
{
|
||||
newBall = _ballScene.Instantiate<Ball>();
|
||||
newBall.SetSprite("res://art/ball_" + i + ".png");
|
||||
_balls.Add(i - 8, newBall);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user