Fixed Bugs; Temporarily removed I-Block

This commit is contained in:
Exobyt 2024-08-20 01:04:19 +02:00
parent ee5e17c3e0
commit 956b719e62
4 changed files with 27 additions and 11 deletions

View file

@ -51,7 +51,8 @@ func _physics_process(delta: float) -> void:
currentPattern.turn(GLOBAL.Direction.RIGHT,i.position-spawnpoint.position + Vector2(GLOBAL.GRID/2, GLOBAL.GRID/2))
#turnBlocks()
if turnTickTimer.is_stopped():
turnTickTimer.start(0.3)
print(5*delta)
turnTickTimer.start(9*delta)
if Input.is_action_just_pressed("rotate_left") and not stopped:
@ -62,7 +63,8 @@ func _physics_process(delta: float) -> void:
currentPattern.turn(GLOBAL.Direction.LEFT,i.position-spawnpoint.position + Vector2(GLOBAL.GRID/2, GLOBAL.GRID/2))
#turnBlocks()
if turnTickTimer.is_stopped():
turnTickTimer.start(0.3)
print(5*delta)
turnTickTimer.start(9*delta)
if Input.is_action_just_pressed("left"):
moveUidGroup(GLOBAL.Direction.LEFT, GLOBAL.currentUID)
@ -213,6 +215,11 @@ func _on_ticker_timeout() -> void:
if await currentPattern.getCollidingBorder() == []:
break
currentPattern.position.x -= 64
currentPattern.position.x = 0
for i in range(1,8):
if await currentPattern.getCollidingBorder() == []:
break
currentPattern.position.x += 64
#if await currentPattern.getCollidingBorder() != []:
#currentPattern.position.y += 64