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