製作按鈕點擊後會變到的場景
if (mouseX > width / 2 - 60 && mouseX < width / 2 - 10 && mouseY > height / 2 + 20 && mouseY < height / 2 + 50) { startGame = true; currentLevel = 1; setupMaze(); } else if (mouseX > width / 2 + 10 && mouseX < width / 2 + 60 && mouseY > height / 2 + 20 && mouseY < height / 2 + 50) { startGame = true; currentLevel = 2; setupMaze(); } else if (mouseX > width / 2 - 20 && mouseX < width / 2 + 30 && mouseY > height / 2 + 75 && mouseY < height / 2 + 107) { startGame = true; currentLevel = 3; setupMaze(); } 每次的換畫面時都要先清空
沒有留言:
張貼留言