摘 要
在現(xiàn)代社會中,手機及其它無線設備越來越多的走進普通老百姓的工作和生活。隨著3G技術的普及與應用,基于Java開發(fā)的軟件在手機上的使用非常的廣泛,手機增值服務的內容也是越來越多,對豐富人們的生活內容、提供快捷的資訊起著不可忽視的作用。
本文基于J2ME技術,以計算機網絡游戲的運行流程為基礎,分模塊開發(fā)一款網絡五子棋游戲軟件。
本文對以下幾點內容做了重點研究和探討:
系統(tǒng)整體結構,根據(jù)設計目標,結合普通網絡游戲的運行流程,給出了系統(tǒng)總體設計方案,并探討了系統(tǒng)設計時需要用到的關鍵技術。
手機MIDP客戶端的實現(xiàn),MIDP客戶端是游戲的唯一客戶端,主要功能包括連接服務器進行身份驗證、進行游戲并不斷的與服務器交換數(shù)據(jù)。
后臺系統(tǒng)的設計與實現(xiàn),后臺用來處理與數(shù)據(jù)庫的互聯(lián)來驗證用戶身份、處理由客戶端發(fā)送過來的數(shù)據(jù)。
由于受到客觀條件的限制,本系統(tǒng)的測試是在三星手機模擬器上完成的,但它仍不失具一定的實用價值。
關鍵詞:J2ME;手機游戲;Servlet
The Design and Implementation of The Gobang War Game on Cell Phone Network
Abstract
In modern society, more and more cell phones and other wireless devices come into the work and life of ordinary people. With the popularization and application of the 3rd Generation of Digital communication technology,the development of Java-based software in the use of mobile phones is very broad, mobile value-added services are more and more. It plays an import role to enrich people's lives and provide easier access to information.
This paper is based on J2ME technology, it expounds how to take the running flow of computer network as basis, introduce a kind of gobang game on network by the sub-module method. .
The main points of this paper go as follows:
(1) The overall system structure. According to the design goals, with the general operation of the network game flow, gives the system design, and explores the key technology, which is used by the design of this system.
(2) The implementation of the phone MIDP client. MIDP client is the only game client, the main functions include connecting the server to check the status, playing games and keeping the exchange of data with the server.
(3) The implementation and design of background system. Background is to deal with the Internet database to verify the identity of users, processing the data, which is sent by the clients.
Due to the restrictions of objective conditions, the system's test completed in the Samsung handset simulator. But it does have some advantages.
Key words: J2ME; Handset game; Servlet