- 相關(guān)推薦
基于.NET框架中國象棋聯(lián)機(jī)游戲的開發(fā)
基于.NET框架中國象棋聯(lián)機(jī)游戲的開發(fā)
摘要
隨著信息技術(shù)的發(fā)展,人民生活水平的不斷提高。聯(lián)網(wǎng)游戲作為1種娛樂手段,正以其獨(dú)特的魅力吸引著越來越多的玩家。為了滿足廣大象棋愛好者也可以享受到網(wǎng)絡(luò)所帶來的便利,本設(shè)計在當(dāng)前局域網(wǎng)條件下實現(xiàn)了中國象棋的網(wǎng)絡(luò)對戰(zhàn)。
鑒于局域網(wǎng)的特點(diǎn)和游戲本身的要求,本設(shè)計采用兩層C/S架構(gòu)來實現(xiàn)相互之間的通信。它主要包含以下幾大模塊:網(wǎng)絡(luò)通信模塊,信息處理模塊,系統(tǒng)模塊和幫助模塊。網(wǎng)絡(luò)通信模塊使得玩家可以方便的迅速建立起網(wǎng)絡(luò)連接,從而實現(xiàn)聯(lián)機(jī)功能。信息處理模塊實現(xiàn)了玩家棋子動作的交互和收、發(fā)文本信息的功能。系統(tǒng)模塊實現(xiàn)了玩家游戲所需的各種設(shè)備輸入動作的捕捉和響應(yīng)。它所包含的提示功能給玩家提供了很大方便,比如有新的消息,提示音將會個玩家1個最新消息的提示。幫助模塊主要包含游戲操作的介紹和版本信息。
本游戲基于.NET框架進(jìn)行開發(fā),主要涉及GDI+繪圖,Socket通信,Managed DirectX等方面的技術(shù)。經(jīng)過測試,本游戲可以在有.Net 2.0框架和DirectX支持的各種Windows系統(tǒng)下運(yùn)行。
關(guān)鍵字 :C/S; 聯(lián)網(wǎng)游戲 ;中國象棋;.NET2.0
The Development of Chinese-Chess Network Game Based on .NET Framework
Abstract
With the development of information technology, peoples standard of living have improved constantly. On-line game as a means of entertainment has a unique charm to attract more and more players. To meet chess lovers ,this design has realized the Challenges of Chinese-chess between players under the current LAN environment.
In view of the fact that the characteristic of LAN and the request of the game,the platform uses C/S construction to realize mutual communication .The design mainly contains several modules as follows: Network connection module, information processing module,system module and help module. The network connection module enables the players to establish the network connection conveniently and rapidly and realize the on-line function.The information processing module reflects the interactive action of players and sends or receives message. The system module enables to capture the action and response of the input devices and realized the basic function .Especially the function of sound provides great convenience to the player, for instance, a music will be played once a new information is received. Help module contains the main game operation of the presentation and version information.
The development of this game based on . NET framework. It mainly related GDI + graphics, Socket Communications, Managed DirectX areas of technology. After testing,The game can run on Windows operating system in the support of the dot Net 2.0 framework and Managed DirectX.
Keywords: C/S ; On-line Game ;Chinese-Chess; .NET2.0
【基于.NET框架中國象棋聯(lián)機(jī)游戲的開發(fā)】相關(guān)文章:
基于.NET技術(shù)的在線考試系統(tǒng)ASP.NET+SQL03-08
基于ASP.NET電子購物系統(tǒng)ASP.NET+SQL03-08
基于ASP.NET在線考試系統(tǒng)設(shè)計ASP.NET+SQL03-08
淺議軟件開發(fā)框架技術(shù)12-02
基于ASP.NET的計算機(jī)安全檢測系統(tǒng)03-07