Fix mouse hold issue

master
sigonasr2 5 years ago
parent 940da59444
commit fa706bbff6
  1. 2
      game.js

@ -1526,8 +1526,10 @@ function clickEvent(e) {
if (gameState===STARTUP) { if (gameState===STARTUP) {
currentSound.play() currentSound.play()
setupTitleScreen() setupTitleScreen()
MOUSEDOWN=false
} }
if (gameState===TITLE) { if (gameState===TITLE) {
MOUSEDOWN=false
if (new Date().getTime()-TITLESCREENTIMELINE>=15000) { if (new Date().getTime()-TITLESCREENTIMELINE>=15000) {
if (FIRSTBOOT) { if (FIRSTBOOT) {
loadStage(TUTORIAL1) loadStage(TUTORIAL1)

Loading…
Cancel
Save