Buy CourseCourse Fee
388 dollarsLearning Progress
Complete the project within 7 days after enrollment,Approximately 1 hours of lessons
388 dollarsLearning Progress
Complete the project within 7 days after enrollment,Approximately 1 hours of lessons
About This Course
「深水炸彈」是一個歷久彌新的電玩遊戲,簡單有趣的規則,讓他一度成為掌上遊戲機的寵兒。
現在,就請跟著橘蘋學習平台老師的腳步,一起用 JavaScript 完成這個遊戲程式吧!
What You Will Learn
實作深水炸彈
Knowledge Points
- JavaScript JS: BooleanJS: Math Operators: ModJS: Comparison OperatorsJS: else ifJS: Function: ParametersJS: Math.random()JS: Engine: Sprite.rotationStyleJS: Engine: Sprite.destroy()JS: Engine: Sprite.forever()JS: Engine: Events: TouchJS: Engine: Events: KeydownJS: Engine: Events: Holding
- Scratch Scratch: Layer
Why You Should Take This Course
學會「函式 (Function)」觀念,讓程式碼更簡潔、有組織性
函式是程式中舉足輕重的一個角色,雖然不用函式也能寫程式,但是一旦程式碼多了,就會面臨難以維護的窘境。
函式 (function) 的目的就是將特定功能的程式碼包裝起來,需要用到時再呼叫。這樣的做法可以有效降低程式的冗贅性,並提升維護性及編寫效率,是程式高手不可或缺的技巧哦!
遊戲的製作原理
遊戲的實作機制比較特別,你可以想象有一個大廻圈,依據資料的內容不停地重繪畫面,一旦資料變動(如分數),畫面也會跟著改變。
你將在實作專案的過程中,體會到遊戲的渲染原理、及事件機制。
Course Difficulty
對 JavaScript 有基礎認識,寫過小型專案的學生
Prerequisite Knowledge
JS: Variable JS: Math Operators JS: Comparison Operators JS: Object JS: Function JS: Engine: Sprite: Position JS: Engine: Sprite.costumes JS: Engine: Sprite.direction JS: Engine: Sprite.scale JS: Engine: Sprite.toward() JS: Engine: createSprite JS: Engine: Sprite.stepForward()Course Features
實拍影片教學
專案導向學習
遊戲製作原理
熱門程式語言
社群交流問答
線上隨時複習