hide cursor
This commit is contained in:
parent
054fac4f09
commit
6f1dde46df
8
app.js
8
app.js
@ -917,14 +917,16 @@ function restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function pauseSettings() {
|
function pauseSettings() {
|
||||||
|
stats.pauseTime = stats.time
|
||||||
|
|
||||||
scheduler.clearInterval(fall)
|
scheduler.clearInterval(fall)
|
||||||
scheduler.clearTimeout(lockDown)
|
scheduler.clearTimeout(lockDown)
|
||||||
scheduler.clearTimeout(repeat)
|
scheduler.clearTimeout(repeat)
|
||||||
scheduler.clearInterval(autorepeat)
|
scheduler.clearInterval(autorepeat)
|
||||||
stats.pauseTime = stats.time
|
|
||||||
music.pause()
|
|
||||||
|
|
||||||
|
music.pause()
|
||||||
document.onkeydown = null
|
document.onkeydown = null
|
||||||
|
renderer.domElement.style.cursor = "auto"
|
||||||
|
|
||||||
settings.show()
|
settings.show()
|
||||||
}
|
}
|
||||||
@ -973,6 +975,8 @@ function resume(event) {
|
|||||||
music.play()
|
music.play()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderer.domElement.style.cursor = "none"
|
||||||
|
|
||||||
if (piece) scheduler.setInterval(fall, stats.fallPeriod)
|
if (piece) scheduler.setInterval(fall, stats.fallPeriod)
|
||||||
else generate()
|
else generate()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user