adding in some example pegs and their actions. organizing folders, still working on pathing for some reason it won't move sometimes, and causes the looping to break
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Globals : Node2D
|
||||
{
|
||||
@@ -7,4 +8,9 @@ public partial class Globals : Node2D
|
||||
public static float _gravity = (float)ProjectSettings.GetSetting("physics/2d/default_gravity"), _drag = (float)ProjectSettings.GetSetting("physics/2d/default_linear_damp");
|
||||
public static MouseHandler _mouse;
|
||||
|
||||
|
||||
public static T GetRandomFromList<T>(List<T> TYPED_LIST)
|
||||
{
|
||||
return TYPED_LIST[_rng.Next(0,TYPED_LIST.Count)];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user