Join CourseCourse Fee
This course is currently free. Sign up now!Learning Progress
Complete the project within 7 days after enrollment,Approximately 1 hours of lessons
This course is currently free. Sign up now!Learning Progress
Complete the project within 7 days after enrollment,Approximately 1 hours of lessons
About This Course
你是打字高手嗎?如果不是,你曾經利用打字遊戲來練習嗎?
這個專案很特別,不用任何一個角色、完全靠文字所構成,看著滿天飛舞的文字,玩家必須趕快打出其中一個完整的單字,才能將它消掉並且得到一分。請注意哦,如果漏了太多文字,是會輸掉遊戲的!玩家便是在這種刺激的節奏中用最快的速度揮舞手指,練習打字速度哦!
感覺很好玩吧?快來學看看吧!
What You Will Learn
製作鍵盤快打遊戲專案
Knowledge Points
- JavaScript JS: String.sliceJS: Array.push()JS: Array.splice()JS: ObjectJS: Math.random()JS: Math.floor()JS: setInterval()JS: Engine: forever()JS: Engine: stop()
Why You Should Take This Course
JavaScript 是目前最火紅的程式語言之一,原因無他:好學、應用範圍廣。
在這堂課中,你將能夠學到:
物件與陣列的進階組合技
為了做出這個專案,你將學習如何利用物件儲存畫面上的文字以及各自的位置,並使用陣列將這些文字存起來。
學習如何為程式加入隨機性
許多遊戲之所以好玩、引人入勝,就是因為有著“不確定性”:不知道敵人會從哪裡冒出來、不知道寶物會藏在哪邊。
在這個專案中,你將學到如何用 Math.random 這個指令為程式加入“隨機”的元素。
Course Difficulty
對 JavaScript 有基礎認識,理解變數及陣列意義並用他們寫過程式的學生
Prerequisite Knowledge
JS: Variable JS: Math Operators JS: Logical Operators JS: Array: elements JS: else JS: else if JS: For loop JS: Engine: when() JS: Engine: setBackdrop JS: Engine: print() JS: String JS: Array JS: Engine: Events: Keydown Scratch: IfCourse Features
專案導向學習
遊戲專案製作,超好玩
線上隨時複習
社群交流問答
影片引導
熱門程式語言