Complete Course Design Project

This commit is contained in:
Student 2026-01-09 01:01:23 +08:00
parent 7a1f715889
commit d8122fe3d4
2 changed files with 4 additions and 2 deletions

View File

@ -340,7 +340,7 @@ const englishData = {
"Here you are.",
"I don't have any ID.",
"Why do you need that?",
"This is too麻烦."
"This is too troublesome."
],
correctAnswer: 0,
type: "user_question"

View File

@ -36,7 +36,6 @@ function getDomElements() {
function initGame() {
resetGameState();
loadScene(gameState.currentSceneIndex);
setupEventListeners();
updateProgress();
}
@ -389,6 +388,9 @@ document.addEventListener('DOMContentLoaded', () => {
// 获取DOM元素
getDomElements();
// 设置事件监听器(只调用一次)
setupEventListeners();
// 确保englishData已加载
if (typeof englishData !== 'undefined') {
initGame();