目前已商業運轉之網頁遊戲多使用Flash或Java等程式獨立設計之後,以外掛元件的方式嵌入網頁執行。有鑑於此類程式不具透明性,安全性值得疑慮,且有過度消耗網路頻寬與設備電力的缺點,對於逐漸盛行之智慧型手機及平板電腦等設備相當不利,多數專家預期將由升級進化中的HTML5技術所取代。換言之,未來網頁遊戲設計之主流模式將以標準化之網頁設計工具HTML與JavaScript語言為核心,外掛程式之設計模式將逐漸式微。本文即以HTML5技術為核心,實作一個五子棋網頁遊戲,並搭配ASP.NET之AJAX通訊技術建構為一個具體而微的網頁線上遊戲。其意義在證實以非外掛模式實作網頁線上遊戲之可行性,並公開原始程式碼供各界參考使用。
Most commercial web game now prevailing are designed mostly by embedded Flash or Java programs. Such programs are opaque therefore unsafe for the users and operation systems. Moreover, they also tend to consume more network bandwidth and electric power, which is unfavor to portable devices like mobile phone or tablet PC. As most experts expected, the new HTML5 techniques will gradually become the main designing tools of web games. In this paper, we try to design a web-based Gobang game using HTML5 graphic functions for its interface. And using ASP.NET AJAX communication techniques to upgrade it into an online game. It is proved the program could be easily designed and executing well online.