7-21-25 @ 3:17 am
This commit is contained in:
19
Gameplay/CueBall.cs
Normal file
19
Gameplay/CueBall.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user