论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
基于.NET框架中国象棋联机游戏的开发
摘要
随着信息技术的发展,人民生活水平的不断提高。联网游戏作为1种娱乐手段,正以其独特的魅力吸引着越来越多的玩家。为了满足广大象棋爱好者也可以享受到网络所带来的便利,本设计在当前局域网条件下实现了中国象棋的网络对战。
鉴于局域网的特点和游戏本身的要求,本设计采用两层C/S架构来实现相互之间的通信。它主要包含以下几大模块:网络通信模块,信息处理模块,系统模块和帮助模块。网络通信模块使得玩家可以方便的迅速建立起网络连接,从而实现联机功能。信息处理模块实现了玩家棋子动作的交互和收、发文本信息的功能。系统模块实现了玩家游戏所需的各种设备输入动作的捕捉和响应。它所包含的提示功能给玩家提供了很大方便,比如有新的消息,提示音将会个玩家1个最新消息的提示。帮助模块主要包含游戏操作的介绍和版本信息。
本游戏基于.NET框架进行开发,主要涉及GDI+绘图,Socket通信,Managed DirectX等方面的技术。经过测试,本游戏可以在有.Net 2.0框架和DirectX支持的各种Windows系统下运行。
关键字 :C/S; 联网游戏 ;中国象棋;.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