fix new Tetromino glitch

This commit is contained in:
2023-07-17 09:16:48 +02:00
parent 7acb3a6def
commit fcb12f89e7
2 changed files with 48 additions and 37 deletions

5
app.js
View File

@@ -28,7 +28,7 @@ let game = {
gui.stats.show()
gui.settings.close()
Mino.instances.clear()
Mino.mesh.clear()
holdQueue.remove(holdQueue.piece)
holdQueue.piece = undefined
@@ -309,9 +309,10 @@ messagesSpan.onanimationend = function (event) {
function animate() {
const delta = clock.getDelta()
scene.updateMatrixWorld()
scene.update(delta)
playfield.update(delta)
Mino.update()
Mino.mesh.update()
controls.update()
gui.update()