Tree Trunk start

This commit is contained in:
2024-10-24 08:12:10 -04:00
parent 61d38852cd
commit 0e0121c3c4

View File

@@ -79,7 +79,8 @@ var FirstGoTo = []
var AllSetsToGoal = [] var AllSetsToGoal = []
var TargetsArray = [] var TargetsArray = []
var Goal = false var Goal = false
#TODO Fix TREE ARRAY BUG var Trunk = []
func _input(event): func _input(event):
#if Current_Position != TargetCord: #if Current_Position != TargetCord:
if event.is_action_pressed("ui_left"): if event.is_action_pressed("ui_left"):
@@ -179,26 +180,22 @@ func FoundGoal():
func AllObjectsFound(): func AllObjectsFound():
if Tree_Array_SetStart != Tree_Array[0]: if Tree_Array_SetStart != Tree_Array[0]:
var CurrentInstructionSet = []
if Move_Check1 != move: if Move_Check1 != move:
print("We Done!!!!!!!!!!!!!!!!!") print("We Done!!!!!!!!!!!!!!!!!")
print() print()
#for n in AllSetsToGoal.size():
# print(n ," set is equal to : ", AllSetsToGoal[n] )
# print()
for n in AllSetsToGoal.size(): for n in AllSetsToGoal.size():
var PrimaryPlaceHolder = AllSetsToGoal[n] print(n ," set is equal to : ", AllSetsToGoal[n] )
if n < AllSetsToGoal.size():
var SearchPlaceHolder = AllSetsToGoal[n]
print() print()
print("Search Placeholder ",n)#, " is : ", SearchPlaceHolder ) print("The size for ", n, " is: ", AllSetsToGoal[n].size())
for i in SearchPlaceHolder: CurrentInstructionSet.push_back(AllSetsToGoal[n].size())
print("The Broken up pieces is: ",i) print("The max is: ", (CurrentInstructionSet).max())
for index in AllSetsToGoal.size(): var key = CurrentInstructionSet.find(CurrentInstructionSet.max())
if n != index: for i in AllSetsToGoal.size():
print("The Index is the ",index, " placeholder: ", AllSetsToGoal[index].find(i)) if i != key:
else: print(i)
print(index," Is the same as the placeholder") for x in AllSetsToGoal[key]:
print(x)
Move_Check1 = move Move_Check1 = move