摘 要
網絡游戲的出現代表了一種全新娛樂方式的誕生。目前網絡游戲正以其獨特的魅力吸引著眾多的玩家。隨著游戲產業的蓬勃發展,將需要越來越多的人加入到游戲開發中來。
本畢業設計所完成的五子棋游戲(網絡版)是在Windows XP下使用Microsoft Visual C++6.0開發的C/S系統,可以實現網絡間的雙人對戰,并且可以提供多媒體播放功能。系統的多媒體播放功能可以播放MP3、WMA等主流格式的音樂。
本論文從基本網絡套節字開始入手,介紹了一些本系統相關的理論知識,隨后詳細介紹了五子棋游戲(網絡版)的開發過程。包括服務器端、客戶端的socket編程,五子棋服務器和客戶端通信的實現,五子棋判斷算法的實現,主界面視圖,多媒體播放以及定時器等附加功能的實現。最后對系統進行測試并對所做工作進行總結。
關鍵詞:網絡游戲;五子棋;VC;WinSocket;MCI
The Design and Development of the on -line
Black&White Game
Abstract
On-line games bring to a new form of entertainment. Until now, on-line games is charming more and more players. As the development of game industry, there will be more and more developers join in the game development team.
The on -line Black&White game was developed by Microsoft Visual C++6.0 on Windows XP platform. In this game, two people can play the game on line, and the game also provides multimedia player function.
The thesis start with introduction of network socket programming, the development processing of the on -line Black&White game are introduced in detail as followed. The thesis have a full touch on server and client socket programming, the communication between server and client was implemented, the algorithm of the five-in-a-row game, the multimedia playback functions.
Key words: On-line games; Black&White game; VC; WinSocket; MCI