摘 要
在現(xiàn)代社會(huì)中,手機(jī)及其它無線設(shè)備越來越多的走進(jìn)普通老百姓的工作和生活。隨著3G技術(shù)的普及與應(yīng)用,基于Java開發(fā)的軟件在手機(jī)上的使用非常的廣泛,手機(jī)增值服務(wù)的內(nèi)容也是越來越多,對(duì)豐富人們的生活內(nèi)容、提供快捷的資訊起著不可忽視的作用。
本文基于J2ME技術(shù),以計(jì)算機(jī)網(wǎng)絡(luò)游戲的運(yùn)行流程為基礎(chǔ),分模塊開發(fā)一款網(wǎng)絡(luò)五子棋游戲軟件。
本文對(duì)以下幾點(diǎn)內(nèi)容做了重點(diǎn)研究和探討:
系統(tǒng)整體結(jié)構(gòu),根據(jù)設(shè)計(jì)目標(biāo),結(jié)合普通網(wǎng)絡(luò)游戲的運(yùn)行流程,給出了系統(tǒng)總體設(shè)計(jì)方案,并探討了系統(tǒng)設(shè)計(jì)時(shí)需要用到的關(guān)鍵技術(shù)。
手機(jī)MIDP客戶端的實(shí)現(xiàn),MIDP客戶端是游戲的唯一客戶端,主要功能包括連接服務(wù)器進(jìn)行身份驗(yàn)證、進(jìn)行游戲并不斷的與服務(wù)器交換數(shù)據(jù)。
后臺(tái)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn),后臺(tái)用來處理與數(shù)據(jù)庫的互聯(lián)來驗(yàn)證用戶身份、處理由客戶端發(fā)送過來的數(shù)據(jù)。
由于受到客觀條件的限制,本系統(tǒng)的測(cè)試是在三星手機(jī)模擬器上完成的,但它仍不失具一定的實(shí)用價(jià)值。
關(guān)鍵詞:J2ME;手機(jī)游戲;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