登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 理工学类 > 信息与计算科学 > 正文

基于Unity游戏引擎的太空之战游戏开发毕业论文

 2021-05-25 10:05  

摘 要

随着移动智能手机时代的到来,移动游戏开发迎来了空前的发展机遇,如今Android和IOS两大系统平台是当今移动操作系统的主流,实现一次开发多平台部署是实现快速游戏开发的关键。Unity游戏引擎作为世界顶级引擎在移动游戏开发时代受到极大关注,其简单易用,良好的跨平台特性使其成功吸引了众多游戏和虚拟现实开发者。

本文基于Unity游戏引擎将实现一个Android平台上的太空之战游戏。该游戏主要包含两个游戏场景,第一个场景使用Unity自带的UI系统实现游戏的开始,暂停,退出,设置等常用的游戏UI接口,第二个场景为游戏主场景,实现玩家对于战机的控制从而发射导弹摧毁敌方战机。本文主要使用了Unity中的物理系统实现碰撞检测和相关效果,使用Unity的粒子系统实现战机的爆炸效果,通过编写详细的脚本从而实现玩家对于战机的控制和导弹的发射以及敌方战机的随机生成。通过将玩家的分数记录到本地实现玩家每次游戏时分数的排行榜功能。最后将游戏发布到Android平台进行游戏的测试。

关键词:游戏引擎;安卓;太空之战

Abstract

With the arrival of Mobile Smartphone, mobile game development has ushered in unprecedented opportunities for development, both Android and IOS platform today is the mainstream of mobile operating systems. The key to rapid game development is once development for multi-platform. Unity as a world’s top mobile game engine has attracted much attention, its easy to use, good cross-platform features make it successful in attracting a large number of games and virtual reality developers.

This paper based on the Unity game engine will achieve a space battle game on the Android platform. The game consists of two main game scene, the first scene use the unity’s ui system to achieve the function of starting, pausing, exiting and settting, the second scene is the main scene of the game, and make player to control the aircraft and fire missiles to destroy enemy fighters. This paper uses the Unity of the physical system to achieve the effect of collision detection, and uses the Unity of the particle system to achieve the effect of explosion. By writing a detailed script in order to control the aircraft and fire missile and missiles randomly generated. By the player's score is recorded to the hard realization score leaderboards. Finally, the game was released to the Android platform game to test.

Keywords: Game Engine; Android; Space War

目 录

第1章 引言 1

第2章 游戏开发基础知识 2

2.1 常见游戏类型介绍 2

2.2 OpenGL和DirectX图形库 3

2.3 渲染管线介绍 4

2.4 基础三维坐标系统 7

2.5 游戏引擎简介 7

第3章 Unity游戏引擎基础知识 9

3.1 Unity游戏引擎 9

3.2 Mono开发平台 9

3.3 C#语言 9

3.4 Unity基本界面及视图 9

3.5 GameObject,Component和Scene 11

3.6 Material,Shader和Texture 12

3.7 相机 13

3.8 资源工作流程 14

3.9 UI系统 15

3.10 物理系统 16

3.11 脚本系统 17

第4章 游戏的策划设计与代码实现 19

4.1 游戏内容框架介绍 19

4.2 主界面场景的实现 19

4.3 战斗场景的实现 23

第5章 游戏Android平台的发布和测试 27

5.1 Android平台简介 27

5.2 Android发布平台环境的搭建 27

5.3 Android手机游戏的发布与测试 28

第6章 总 结 30

致 谢 31

参考文献 32

附 录 34

  1. 引言

中国游戏最新的产业报告中指出,中国游戏玩家数量已经达到五亿多人,各种类型的游戏总市场规模高达1500亿人民币。由国内游戏开发者研发的各类型游戏国内市场销售已经达到1000亿人民币,海外销售高达55亿美元,销售幅度大增。

最新的游戏产业统计数据表明,PC端的游戏销售为610亿人民币,增幅较慢,网页游戏的实际营销收入为220亿人民币,而智能手机游戏的市场营收为520亿人民币,增幅高达80%以上。而对于电视游戏,其市场营收为2亿多人民币,单机游戏市场营收为1.5亿人民币,但增长幅度却高达200%。

随着智能手机的不断普及,移动手机游戏开发迎来了难得的发展机遇。面对巨大的商业机遇,各移动游戏公司都以快速开发精品移动游戏为重点。快速的快和良好的渲染质量是各个游戏厂商选择游戏开发工具的考虑重点。开发游戏的工具为游戏引擎,如今许多游戏厂商和开源社区都开发了相应的游戏引擎工具。这些引擎工具分为开源游戏引擎和闭源商业游戏引擎,许多开源游戏引擎由开源社区维护,其优点是免费开放源代码,但相对于商业游戏引擎开发较难使用,缺少良好的游戏编辑器,商业游戏引擎由于有公司资金的支持相对来说工具比较完整,有较好的编辑器可供使用。

在所有的游戏引擎中,开发移动移动游戏较为流行的游戏引擎有开源游戏引擎Cocos和商业游戏引擎Unity。Cocos游戏引擎有触控科技公司维护支持,其可以使用Js,C ,Lua等多种语言编写脚本,具有很强的灵活性,但由于缺少较好的编辑器支持,所以一般适合较小型的2D游戏开发。Unity游戏引擎有Unity科技公司维护支持,其良好的设计哲学和强大的编辑器功能使得游戏开发变得非常简单。

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图