網絡遊戲開發設計VC++

學識都 人氣:1.95W
畢業論文

目  錄

網絡遊戲開發設計VC++

前言 1
1  網絡遊戲開發背景 2
1.1 網絡遊戲的發展歷史 2
1.2 中國網絡遊戲玩家遊戲行爲分析 2
1.3 網絡遊戲玩家最喜歡的遊戲類型 3
1.4 國內市場佔有率前15強網絡遊戲 3
1.5 網絡遊戲的意義 4
2  3D遊戲程序設計 5
2.1 DirectX簡介 5
2.2 3D數學知識 6
2.3 Direct3D基本原理 8
3  遊戲架構 11
3.1 容納程序的空間 11
3.2 刀鋒戰士框架 11
3.2.1 程序流程 11
3.2.2 刀鋒戰士類結構 14
4  刀鋒戰士遊戲引擎 16
4.1 遊戲引擎 16
4.2 刀鋒戰士遊戲引擎結構 17
4.3 引擎中的3D渲染類 17
4.4 引擎中的網絡通信類 21
4.4.1 DirectPlay功能分析 21
4.4.2 CNetworkServer類方法 22
5  設計與實現 24
5.1 遊戲開發背景 24
5.2 功能設計 24
5.2.1 場景地圖 24
5.2.2 角色及視角 25
5.2.3 客戶端和服務器的通信 26
5.2.4 保持同步 26
5.2.5 服務端消息處理 29
5.3 遊戲程序流程圖 29
5.4 功能實現 30
5.4.1 處理角色數據 30
5.4.2 消息接收 32
5.4.3 創建角色 32
5.4.4 刪除角色 34
5.4.5 改變角色狀態 34
6  結束語 36
參考文獻………………………………………………………………………………………….………37
致謝……………………………………………………………………………………….………………38

 

網絡遊戲開發設計
 

摘要:隨着電腦的日益普及,電腦遊戲得到廣泛的推廣,對豐富人們的生活內容、提供巨大的商機起着不可忽視的作用。本論文着眼於C++技術和DirectX SDK工具的應用,開發1款可商用的網絡遊戲程序——刀鋒戰士。本遊戲畫面細緻逼真、人物動作流暢自如、操作簡單上手,適用於各種網絡對戰平臺。本論文介紹了Visual C++技術的使用、DirectX SDK的相關技術及本程序的結構分析和具體功能的實現。通過對網絡遊戲——刀鋒戰士的結構模塊分析,3D場景實現和功能設計的介紹。簡單的闡述了現在普遍的遊戲編程技巧和工具,以及聯網遊戲的設計原理。本遊戲開發完全按照軟件開發思想設計,便於深入瞭解網絡遊戲製作過程。同時調查了現在國內各種網絡遊戲的現狀以及發展趨勢,爲欲從事網遊設計的朋友提供1點參考。
關鍵詞:Visual C++;電腦遊戲;DirectX SDK;刀鋒戰士


The design of the network game
 

Abstract: Along with the daily popularization of computer, the computer game obtains the widespread promotion. It plays the noticeable role in peoples life and provides huge opportunities. The present paper focuses on the technology of Visual C++ and the application of the tool of DirectX SDK so as to develop one section of the commercial network game procedure to be possible which name is knife point soldier. The picture of the game is careful lifelike, the characters act smoothly and freely, the operation is game is suitable in each kind of network platform. The present paper introduced the use of the technology of Visual C++, the related technology to DirectX SDK, the structure analysis of the procedure and the realization of concrete function. Through structure analysis on the network game knife point soldier, realization of 3D scene and introduction to functional design, the paper elaborates universal skills and tools in programming games, as well as the principles of designing networking game. This game defers to the design of software development thought completely what is advantageous for understanding the manufacturing the process of network game. Simultaneously the paper investigated the situation of domestic each kind of network game, as well as the trend of development to provide a reference for those who want to be engaged in the net to swim the design.
Key word: Visual C++, computer game, DirectX SDK, knife point soldier

前言
網絡遊戲成績斐然,成爲IT產業中增長最快的部分之1。.縱觀IT產業的`歷史,計算機遊戲已經成爲技術創新背後的動者渴望更加強大的硬件計算能力;渴望不受不同的軟件的限制。無論是將圖形強制在人工智能(AI)上 還是網絡安全性。遊戲開發者和玩家常常是前沿計算機技術的最早的採用者。由於他們的創新天性,遊戲不再是由大型採購公司控制的技術產品。遊戲領域總是有充足的空間給那此在這方面有天分的單個創新者。隨着技術對遊戲經驗的促進,遊戲市場持續增長。商業IT革命爲我們節省了時間力之1。計算機遊戲和金錢,從而提高了我們的工作水平,我們因此花費更多的時間和金錢在遊戲上,來改善生活的整體質量。甚至在當今困難的經濟時代,遊戲仍保持快速增長,他仍然是盈利行業的組成部分。遊戲開發者應該注意到這裏蘊藏着的巨大的商機。