Click here for free DL of the app version that can save data.
No:620 39
Prev Next
Update the animal school simulator, quick! 🤬💢game
Developer どうスクのアプデ早くしろよ!🤬💢|Date and time 23/6/16 15:10:24
Build time 61.999 sec|Game capacity 4.999KB|Script


の概要:

「どうぶつスクールシミュレーター」は、プレイヤーが動物学校の教師として、可愛い動物たちに授業を教えるシミュレーションゲームです。プレイヤーは講義計画を立てて、クイズを出題したり、実験を行ったりしながら、動物たちの知識レベルをアップさせていきます。

操作方法:

スマホでは、タップやスワイプで簡単にゲームを進めることができます。画面上のアイコンをタップすることで、教壇に立つキャラクターのアニメーションが再生されます。また、クイズには四択形式が採用されており、答えを選ぶだけで簡単に回答することができます。

プログラム:



どうぶつスクールシミュレーター


JavaScript部分: var animals = [ { name: "くま", grade: 0, quiz: [ {question: "くまの一般的な寿命は?", options: ["20年", "30年", "40年", "50年"], answer: 2}, {question: "くまを転ばせた時、逆立ちするのは?", options: ["お腹", "足", "尻尾", "耳"], answer: 3} ] }, { name: "ぞう", grade: 0, quiz: [ {question: "ぞうの一日の睡眠時間は?", options: ["2時間", "4時間", "6時間", "8時間"], answer: 1}, {question: "ぞうが水を飲む時、使っている鼻の穴は?", options: ["片方", "両方", "交互", "わからない"], answer: 2} ] }, { name: "ペンギン", grade: 0, quiz: [ {question: "ペンギンの一般的な生息地は?", options: ["北極", "南極", "アジア", "ヨーロッパ"], answer: 1}, {question: "ペンギンを一番急に殺す方法は?", options: ["ポイズンリンゴ", "ナイフ", "鉄塔", "わからない"], answer: 0} ] } ]; var currentAnimal = 0; var currentQuiz = 0; var score = 0; function startGame() { document.getElementById("start").style.display = "none"; document.getElementById("quiz").style.display = "block"; showQuiz(); } function showQuiz() { document.getElementById("quiz").innerHTML = "

Q. " + animals[currentAnimal].quiz[currentQuiz].question + "

"; var options = ""; for (var i = 0; i < animals[currentAnimal].quiz[currentQuiz].options.length; i++) { options += ""; } document.getElementById("quiz").innerHTML += options; } function checkAnswer(index) { if (index == animals[currentAnimal].quiz[currentQuiz].answer) { score++; } if (currentQuiz < animals[currentAnimal].quiz.length - 1) { currentQuiz++; showQuiz(); } else { document.getElementById("quiz").style.display = "none"; document.getElementById("result").style.display = "block"; var message = ""; switch (score) { case 0: case 1: message = "残念!もう少し勉強しよう!"; break; case 2: message = "まあまあ。もう少し頑張ればいい結果が出るかも!"; break; case 3: message = "素晴らしい!よくできました!"; break; default: message = "おめでとう!あなたはどうぶつ博士です!"; } document.getElementById("result").innerHTML = "

あなたのスコアは" + score + "/3です!

" + message + "

"; document.getElementById("buttons").innerHTML = ""; } } function showResult() { document.getElementById("result").style.display = "none"; document.getElementById("buttons").style.display = "none"; document.getElementById("game").innerHTML = "

おめでとう!あなたは、" + animals[currentAnimal].name + "の特別授業に参加できます!

"; } function next() { currentAnimal++; currentQuiz = 0; score = 0; showQuiz(); document.getElementById("quiz").style.display = "block"; document.getElementById("result").style.display = "none"; } function retry() { currentAnimal = 0; currentQuiz = 0; score = 0; document.getElementById("retry").style.display = "none"; document.getElementById("buttons").innerHTML = ""; document.getElementById("game").innerHTML = ""; document.getElementById("quiz").innerHTML = ""; }


*This prompt didn't get me into the game this time. Plz try to generate it a few times.
Prev Next   Back  0  0 Menu 

[PR]現在の新着人気ランキング

Click here for free DL of the app version that can save data.

(C)2023 HisashiApp