1、摘要 I 摘 要 网络棋牌游戏,作为一个新生事物,从诞生到现在不过几年时间。随着互联网在我 国的飞速发展,网络棋牌以其足不出户便能决胜于千里之外的独有魅力,早已将那些以 往只能面对面博弈的棋友们,从棋桌上拉到了电脑屏幕前。这是世界棋牌运动的未来发 展趋势1。 棋牌类游戏是网络游戏中非常流行的游戏种类,它简单易学、趣味性强,与其它大 型网游相比,游戏设计和实现的难度相对较低2。 本文首先将阐述网络棋牌游戏的背景和 研究的意义, 接着简单介绍基于VC+和开源的2D游戏引擎HGE设计的局域网对战“跑 得快”游戏的一种实现方法。并介绍了套接字(SOCKET)的使用,多线程通信的实现, HGE 引擎的简
2、单使用以及 HGE 引擎中 GUI(图形用户界面)的简单应用。该系统界面 友好,功能实现起来容易,对编写棋牌游戏的入门有着很好的帮助。 关键词:关键词:套接字; VC+; HGE; 多线程 Abstract II Abstract Network card games, as a new thing, from the birth of a few years now, however. With the rapid Internet development in China, the network will be able to run-off Card in their homes th
3、ousands of miles away on the unique charm of the past, only those who already face-to-face friends chess game, chess table, pulled from a computer screen. This Card is one of the world development trend of the future of that movement. Card games are very popular online game types of games, it easy t
4、o learn, fun, and compared with other large-scale online games, game design and realization of a relatively low degree of difficulty. This article will first set out the background of the network board games and study the meaning, and then a brief introduction based on VC + + and open source 2D game engine design HGE LAN against “run fast,“ Method for the game. And introduced the Socket (SOCKET) the use of the realization of multi-threaded communication, HGE engine and simple to use HGE