20 lines
411 B
C#
20 lines
411 B
C#
using Godot;
|
|
using System;
|
|
using System.Data;
|
|
|
|
public partial class CueBall : Ball
|
|
{
|
|
|
|
new public static CueBall _Create()
|
|
{
|
|
PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/cue_ball.tscn");
|
|
CueBall newBall = scene.Instantiate<CueBall>();
|
|
|
|
newBall._isCue = true;
|
|
newBall.GetNode<Sprite2D>("Image").Texture = GD.Load<Texture2D>("res://art/cue_ball.png");
|
|
return newBall;
|
|
}
|
|
|
|
|
|
}
|