掃雷對戰(zhàn)游戲的設(shè)計與實現(xiàn)[獨家原創(chuàng)].doc



DOC格式手機打開展開
掃雷對戰(zhàn)游戲的設(shè)計與實現(xiàn)[獨家原創(chuàng)],掃雷對戰(zhàn)游戲的設(shè)計與實現(xiàn)1.12萬字自己原創(chuàng)的畢業(yè)論文,已經(jīng)通過校內(nèi)系統(tǒng)檢測,重復率低,僅在本站獨家出售,大家放心下載使用摘要 掃雷游戲是windows操作系統(tǒng)自帶的一款小游戲,但這款小游戲一直停留在單機運行的情況下,無法與其他玩家聯(lián)網(wǎng)互動。隨著計算機網(wǎng)絡(luò)的快速發(fā)展,具備互動條件的游戲越來越受到人們的青睞。因此,開發(fā)一...


內(nèi)容介紹
此文檔由會員 淘寶大夢 發(fā)布
掃雷對戰(zhàn)游戲的設(shè)計與實現(xiàn)
1.12萬字
自己原創(chuàng)的畢業(yè)論文,已經(jīng)通過校內(nèi)系統(tǒng)檢測,重復率低,僅在本站獨家出售,大家放心下載使用
摘要 掃雷游戲是Windows操作系統(tǒng)自帶的一款小游戲,但這款小游戲一直停留在單機運行的情況下,無法與其他玩家聯(lián)網(wǎng)互動。隨著計算機網(wǎng)絡(luò)的快速發(fā)展,具備互動條件的游戲越來越受到人們的青睞。因此,開發(fā)一款掃雷對戰(zhàn)游戲能讓這款經(jīng)典游戲煥發(fā)新的時代光彩。
本論文研究的是以Visual Studio 2010作為開發(fā)工具,使用MFC設(shè)計并開發(fā)一款基于C/S架構(gòu)的掃雷對戰(zhàn)游戲。該游戲具有單機游戲功能和聯(lián)機對戰(zhàn)功能。單機游戲下具有英雄榜,背景音樂選擇,以及難度選擇功能;聯(lián)機功能可以實現(xiàn)2-4人聯(lián)網(wǎng)對戰(zhàn)游戲。系統(tǒng)的單人游戲功能主要采用系統(tǒng)的隨機函數(shù)生成雷區(qū),并對玩家鼠標事件做出相應處理,同時能自動打開周圍不是地雷的格子。多人游戲功能采用Windows Sockets開發(fā),分為客戶端和服務器。服務器主要實現(xiàn)與客戶端的通信,通過對客戶端發(fā)來的數(shù)據(jù)包解析,做出相關(guān)處理。不同的客戶端通過服務器轉(zhuǎn)發(fā)游戲的相關(guān)控制信息,從而實現(xiàn)客戶端之間的通信。
該掃雷對戰(zhàn)游戲界面友好,操作簡單方便,程序功能豐富,具有多種難度可供選擇。
關(guān)鍵字: 掃雷游戲 C/S架構(gòu) Socket編程
Design and Implementation of Minesweeper Battle Game
Abstract The Minesweeper is a small game came with Windows operating system, however, this game has been staying in a single operation, which are not connected to interact with other game player. With the rapid development of computer network, the interactive game is becoming more and more popular. Therefore, developing a minesweeper battle game can let this classic game full of new era.
The research of this paper is that using Visual Studio 2010 as a development tool and using MFC to design, I develop C/S architecture of the minesweeper battle game. The game has single game function and multiplayer function. In the single game, we can see the ranking list, chose the background music and select the degree of difficulty. In the multiplayer function, we can play the game with others together online. The single game function of system include using system random function to create mine fields , handling mouse events of players and automatically opening lattice where is not a mine around. The multiplayer function is developed by using Windows Sockets, consisting of the server and clients. By analyzing and dealing with the data packets from clients, the server communicates with the clients. By forwarding the information of game control through the server, the client communicates with other clients.
The Minesweeper battle game has user-friendly Interface; the operation of the game is simple and convenient; you can choose many program features including the degree of difficulty.
Keywords: minesweeper game C/S architecture Socket program
目 錄
第1章 緒 論 1
1.1 項目背景 1
1.2 意義 1
1.3 國內(nèi)外現(xiàn)狀分析 1
1.4 論文章節(jié)構(gòu)成 2
第2章 系統(tǒng)開發(fā)環(huán)境及相關(guān)技術(shù)介紹 3
2.1開發(fā)環(huán)境 3
2.2相關(guān)技術(shù) 3
第3章 掃雷對戰(zhàn)游戲系統(tǒng)分析 5
3.1需求分析 5
3.2可行性分析 6
第4章 掃雷對戰(zhàn)游戲系統(tǒng)設(shè)計 7
4.1系統(tǒng)總體設(shè)計 7
4.2 設(shè)計步驟流程 8
第5章 系統(tǒng)詳細設(shè)計 10
5.1 游戲主界面模塊 10
5.2單人游戲模塊 11
5.2.1游戲邏輯的設(shè)計 11
5.2.2 游戲界面的設(shè)計 14
5.3多人游戲模塊 17
5.3.1通信模塊的總體設(shè)計 17
5.3.2服務器設(shè)計 18
5.3.3客戶端設(shè)計 21
5.3.4服務器與客戶端的通信 24
結(jié)束語 26
致 謝 27
參 考 文 獻 28
1.12萬字
自己原創(chuàng)的畢業(yè)論文,已經(jīng)通過校內(nèi)系統(tǒng)檢測,重復率低,僅在本站獨家出售,大家放心下載使用
摘要 掃雷游戲是Windows操作系統(tǒng)自帶的一款小游戲,但這款小游戲一直停留在單機運行的情況下,無法與其他玩家聯(lián)網(wǎng)互動。隨著計算機網(wǎng)絡(luò)的快速發(fā)展,具備互動條件的游戲越來越受到人們的青睞。因此,開發(fā)一款掃雷對戰(zhàn)游戲能讓這款經(jīng)典游戲煥發(fā)新的時代光彩。
本論文研究的是以Visual Studio 2010作為開發(fā)工具,使用MFC設(shè)計并開發(fā)一款基于C/S架構(gòu)的掃雷對戰(zhàn)游戲。該游戲具有單機游戲功能和聯(lián)機對戰(zhàn)功能。單機游戲下具有英雄榜,背景音樂選擇,以及難度選擇功能;聯(lián)機功能可以實現(xiàn)2-4人聯(lián)網(wǎng)對戰(zhàn)游戲。系統(tǒng)的單人游戲功能主要采用系統(tǒng)的隨機函數(shù)生成雷區(qū),并對玩家鼠標事件做出相應處理,同時能自動打開周圍不是地雷的格子。多人游戲功能采用Windows Sockets開發(fā),分為客戶端和服務器。服務器主要實現(xiàn)與客戶端的通信,通過對客戶端發(fā)來的數(shù)據(jù)包解析,做出相關(guān)處理。不同的客戶端通過服務器轉(zhuǎn)發(fā)游戲的相關(guān)控制信息,從而實現(xiàn)客戶端之間的通信。
該掃雷對戰(zhàn)游戲界面友好,操作簡單方便,程序功能豐富,具有多種難度可供選擇。
關(guān)鍵字: 掃雷游戲 C/S架構(gòu) Socket編程
Design and Implementation of Minesweeper Battle Game
Abstract The Minesweeper is a small game came with Windows operating system, however, this game has been staying in a single operation, which are not connected to interact with other game player. With the rapid development of computer network, the interactive game is becoming more and more popular. Therefore, developing a minesweeper battle game can let this classic game full of new era.
The research of this paper is that using Visual Studio 2010 as a development tool and using MFC to design, I develop C/S architecture of the minesweeper battle game. The game has single game function and multiplayer function. In the single game, we can see the ranking list, chose the background music and select the degree of difficulty. In the multiplayer function, we can play the game with others together online. The single game function of system include using system random function to create mine fields , handling mouse events of players and automatically opening lattice where is not a mine around. The multiplayer function is developed by using Windows Sockets, consisting of the server and clients. By analyzing and dealing with the data packets from clients, the server communicates with the clients. By forwarding the information of game control through the server, the client communicates with other clients.
The Minesweeper battle game has user-friendly Interface; the operation of the game is simple and convenient; you can choose many program features including the degree of difficulty.
Keywords: minesweeper game C/S architecture Socket program
目 錄
第1章 緒 論 1
1.1 項目背景 1
1.2 意義 1
1.3 國內(nèi)外現(xiàn)狀分析 1
1.4 論文章節(jié)構(gòu)成 2
第2章 系統(tǒng)開發(fā)環(huán)境及相關(guān)技術(shù)介紹 3
2.1開發(fā)環(huán)境 3
2.2相關(guān)技術(shù) 3
第3章 掃雷對戰(zhàn)游戲系統(tǒng)分析 5
3.1需求分析 5
3.2可行性分析 6
第4章 掃雷對戰(zhàn)游戲系統(tǒng)設(shè)計 7
4.1系統(tǒng)總體設(shè)計 7
4.2 設(shè)計步驟流程 8
第5章 系統(tǒng)詳細設(shè)計 10
5.1 游戲主界面模塊 10
5.2單人游戲模塊 11
5.2.1游戲邏輯的設(shè)計 11
5.2.2 游戲界面的設(shè)計 14
5.3多人游戲模塊 17
5.3.1通信模塊的總體設(shè)計 17
5.3.2服務器設(shè)計 18
5.3.3客戶端設(shè)計 21
5.3.4服務器與客戶端的通信 24
結(jié)束語 26
致 謝 27
參 考 文 獻 28