7-21-25 @ 3:17 am
This commit is contained in:
18
Gameplay/SupportBall.cs
Normal file
18
Gameplay/SupportBall.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
public partial class SupportBall : Ball
|
||||
{
|
||||
|
||||
public static SupportBall _Create(int NUMBER)
|
||||
{
|
||||
PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/support_ball.tscn");
|
||||
SupportBall newBall = scene.Instantiate<SupportBall>();
|
||||
|
||||
newBall.GetNode<Sprite2D>("Image").Texture = GD.Load<Texture2D>("res://art/ball_" + NUMBER + ".png");
|
||||
return newBall;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user