【正文】
本科生畢業(yè)設計(論文) 摘 要 隨著社會的發(fā)展,人們越來越注重工作和學習之外的娛樂生活。游戲作為一種常見的休閑娛樂方式,已經日益成為人們生活中的重要內容,而人們對游戲的要求也越來越高。 3D 游戲作為一種依托于新視覺和體感的游戲,已經得到了越來越多的玩家歡迎。 本次畢業(yè)設計旨在成功地設計一款簡單的 3D 游戲 —— 飛機大戰(zhàn),在需求分析的基礎上進行功能模塊劃分,然后對各個模塊進行分析和詳細設計,并利用Unity3D 等技術實現(xiàn)整個游戲。本游戲系統(tǒng)以 Unity3D 游戲引擎作為開發(fā)和發(fā)布平臺, C作為編程語言, Photoshop 作為圖片制作基礎,最 終通過鍵盤實現(xiàn)對飛機模型的控制。 玩家可以通過方向鍵來控制飛機的左右移動,通過空格鍵來控制子彈的發(fā)射。系統(tǒng)會隨機產生一些隕石,通過對飛機的左右控制并發(fā)射子彈來擊落不斷下降的隕石。 整個游戲結構簡單、操作容易、界面美觀,給玩家提供了一個很好的游戲環(huán)境。 關鍵詞: 3D游戲; 飛機大戰(zhàn); Unity3D;游戲引擎 本科生畢業(yè)設計(論文) Abstract With the development of the society, people pay more and more attention to entertainment life outside of work and study. As a mon way of leisure entertainment, games have bee an important content in people39。s life, and people’s demands for games bee higher and higher. As a kind of new visual and somatosensory game, 3D games have bee more and more popular. This graduation design is aimed at successfully designed a simple 3D game the air war, on the demand analysis on the basis of function module partition, then analyze the various modules and the detailed design, and using the Unity3D and other technology to realize the whole game. This game system with Unity3D game engine as the development and publishing platform, c as a programming language, Photoshop as pictures production base, finally through the keyboard to achieve control of the aircraft model. Players can through the arrow keys to control the moving of the plane, through the blank space key to control the launch of a bullet. System will be randomly generated some meteorites, through about control of the plane and launch the bullet to shoot down the falling meteorites. The game has simple structure, easy operation, beautiful interface, and provide players with a good game environment. Keywords: 3D Game。 Air War。 Unity3D。 Game Engine 本科生畢業(yè)設計(論文) I 目 錄 第 1 章 概述 ..................................................... 1 課題開發(fā)背景和研究意義 ........................................ 1 系統(tǒng)研究內容 .................................................. 1 系統(tǒng)開發(fā)工具 .................................................. 2 第 2 章 系統(tǒng)開發(fā)環(huán)境和技術 ........................................ 3 Photoshop 介紹 ................................................ 3 Unity3D 介紹 .................................................. 3 C語言 ........................................................ 5 第 3 章 系統(tǒng)的需求分析 ........................................... 7 可行性研究 .................................................... 7 需求分析 ...................................................... 8 第 4 章 系統(tǒng)的總體設計 ........................................... 9 系統(tǒng)功能模塊圖 ................................................ 9 游戲界 面設計 .................................................. 9 第 5 章 系統(tǒng)的詳細設計與實現(xiàn) ..................................... 14 功能模塊的設計與實現(xiàn) ......................................... 14 玩家模塊的設計與實現(xiàn) ......................................... 22 第 6 章 游戲測試 ................................................ 26 軟件測試目的 ................................................. 26 系統(tǒng)測試過程及結果 ........................................... 26 結 論 ......................................................... 28 參考文獻 ...................................................... 29 致 謝 ......................................................... 30 本科生畢業(yè)設計(論文) 1 第 1 章 概述 課題開發(fā)背景和研究意義 游戲產業(yè)作為一門新興的娛樂產業(yè),已經在世界范圍內得到迅猛的發(fā) 展。玩家進行游戲時,對游戲視覺和體感的要求也逐漸提高,一些比較單一的二維游戲已經不能滿足人們對游戲視覺上的需求了。 3D游戲作為一種依托于新視覺和體感的游戲,得到越來越多的玩家歡迎。三維游戲不僅在視覺上給人們一定的視覺沖擊,并且三維游戲向著體感方向發(fā)展,使玩家身臨其境。世界知名的游戲品牌公司都把自己的游戲制作成逼真的 3D游戲,讓越來越多的玩家可以感受到身臨其境的快樂, 3D游戲將主導游戲的發(fā)展。 雖然現(xiàn)在市面上存在著各種各樣的游戲版本,可是飛機大戰(zhàn)游戲這類小游戲還是很有市場的。這類游戲的優(yōu)勢在于它們操作簡單,上 手容易。在當今社會,人們的工作學習壓力逐漸增大,生活節(jié)奏逐漸加快,大多數(shù)人都沒有足夠的時間去休閑娛樂。對于這些忙碌的人來說,他們不可能花費大量時間在娛樂上,大型游戲是行不通的。這樣的小游戲剛好迎合了這部分人的需求,可以讓他們在工作之余放松一下。 本次畢業(yè)設計的題目是 3D游戲飛機大戰(zhàn)的設計與實現(xiàn),旨在成功的設計出一款在電腦上運行的 3D小游戲 —— 飛機大戰(zhàn)。游戲的主界面應該力求美觀,以提高玩家對游戲的興趣。游戲的控制模塊應該做到簡單易懂、易操作,給玩家提供一個很好的游戲環(huán)境。 系統(tǒng)研究內容 實現(xiàn)一個 3D 的 飛機大戰(zhàn) 游戲需要完成以下工作: 了解和分析用戶需求,并根據(jù)用戶需求設計游戲內容,設定相關場景,包括背景、飛機、隕石、子彈、爆炸特效,具體制定游戲邏輯關系、主要流程、具體任務內容和過關要求。 使用 Photoshop