Third Prototpye
This commit is contained in:
parent
e7d50232b2
commit
08ae4632d4
2 changed files with 8 additions and 8 deletions
|
|
@ -185,7 +185,8 @@ func getNewPatterns():
|
|||
newPatterns[0].type = GLOBAL.BLOCKTYPES.HEAVY
|
||||
newPatterns.shuffle()
|
||||
newPatterns[0].expand = true
|
||||
|
||||
#for i in newPatterns:
|
||||
#i.expand = true
|
||||
newPatterns.shuffle()
|
||||
patternsArray.append_array(newPatterns)
|
||||
|
||||
|
|
@ -249,8 +250,7 @@ func test():
|
|||
if i.turningPoint:
|
||||
currentPattern.set_scale(Vector2(2,2))
|
||||
currentPattern.moveToPosition(i.global_position-spawnpoint.position)
|
||||
#currentPattern.position.x - 64
|
||||
#if i.is_in_group("Block"):
|
||||
|
||||
|
||||
for j in await currentPattern.getCollidingBorder():
|
||||
if j.is_in_group("Floor"):
|
||||
|
|
@ -275,6 +275,10 @@ func test():
|
|||
for i in await currentPattern.getCollidingBlocks():
|
||||
i.queue_free()
|
||||
|
||||
testRows()
|
||||
PlacePattern()
|
||||
|
||||
func testRows():
|
||||
for i in $RowTests.get_children():
|
||||
if i.isCompleted():
|
||||
for j in i.getRow():
|
||||
|
|
@ -289,6 +293,3 @@ func test():
|
|||
for j in getBlockGroupsList():
|
||||
if j != GLOBAL.currentUID:
|
||||
moveUidGroup(GLOBAL.Direction.BOTTOM, j)
|
||||
|
||||
|
||||
PlacePattern()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue