This commit is contained in:
Exobyt 2024-08-22 22:36:40 +02:00
parent 2d9b0f7160
commit 5d00df8534
5 changed files with 53 additions and 8 deletions

View file

@ -96,7 +96,6 @@ func getBlockGroupsList():
func getBlockedDirection(direction : GLOBAL.Direction, uid : int) -> bool:
#var blockslist = getBlockGroupsList()
var isBlocked = false
#print(getBlockGroupsList())
if getBlockGroupsList().has(uid):
for i in getBlockGroupsList()[uid]:
if i.getCollider(direction) != null:
@ -110,14 +109,9 @@ func getBlockedDirection(direction : GLOBAL.Direction, uid : int) -> bool:
func splitOphansUID(uid):
var compareList = {}
#print(uid)
#print(getBlockGroupsList()[uid])
var group = []
for i in getBlockGroupsList()[uid]:
compareList[i] = i.getNeighboursUID(uid)
#if i.getNeighboursUID(uid) == []:
# i.UID = GLOBAL.getNewUID()
#print(i.getNeighboursUID(uid))
if i.getNeighboursUID(uid) == []:
i.UID = GLOBAL.getNewUID()
@ -245,7 +239,6 @@ func test():
#currentPattern.position.y -= 64
for i in getBlockGroupsList()[GLOBAL.currentUID]:
print(i.name)
if i.turningPoint:
currentPattern.set_scale(Vector2(2,2))
currentPattern.moveToPosition(i.global_position-spawnpoint.position)