自從賈伯斯於2010年發表了「Thoughts on Flash」以來,HTML5聲勢節節高升,其教學亦日益重要。在國立台北科技大學資訊工程系中,有一門物件導向程式設計實習課程,透過實作電腦遊戲的過程,讓學生熟練物件導向觀念,本論文將JavaScript導入該課程中,讓學生能使用HTML5技術與JavaScript開發電腦遊戲。本論文設計與實作出一個適合在物件導向程式設計實習教學中所使用的遊戲框架,透過此遊戲框架,學生可以完成一個中小型的遊戲。然而,JavaScript之語言特性與傳統物件導向程式語言(如C++)不同,故在教材設計時必須引導學生使用正確的物件實作方式。本論文針對修習物件導向程式設計實習課程的學生做研究,根據問卷調查與學生所撰寫遊戲程式碼的分析結果,發現使用HTML5/JavaScript框架與其他遊戲框架(Windows/C++及Android/Java框架)相較時,學生所開發遊戲程式的物件特性及其學習成效均沒有顯著差異。
HTML5 has become more and more popular ever since Steve Jobs published the article, “Thoughts on Flash.” Consequently, teaching HTML5 becomes increasingly important. In the Computer Science and Information Engineering department of National Taipei University of Technology (Taipei Tech), there is a course, “Object-Oriented Programming Laboratory (OOP Lab).” In this course, students use a game framework provided by the instructor to implement a computer game, and practice object-orientation through the implementation. This thesis designs and implements an HTML5/JavaScript game framework for OOP Lab, allowing the students to practice HTML5 and JavaScript. Since JavaScript has language characteristics quite different from traditional object-oriented languages (e.g., C++), we need to provide instructional materials, guiding the students to implement objects properly. In addition, this thesis conducts a case study, analyzing students' code and feedback, based on the students of OOP Lab. The results reveal that in comparison with the other game frameworks (Windows/C++ and Android/Java), the students who use HTML/JavaScript framework to develop games have both similar object characteristics in the codes and similar progresses in programming skills.