登录

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

注册

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

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 软件工程 > 正文

基于Unity3D的安卓手机游戏开发毕业论文

 2021-10-24 03:10  

摘 要

近年来,随着4G广泛普及以及5G网络通信时代的展望,游戏行业一直行进在飞速发展的可观前景道路之中。从单机游戏、端游、手游的不断演变,可以看出玩家用户对于游戏的需求以及质量等有了更高的要求。当下的各种爆款游戏,像是《球球大作战》、《王者荣耀》、《纪念碑谷》等等,而这些游戏有个共同点便是都由Unity3D引擎开发。Unity3D引擎作为当下最为流行的游戏开发引擎,集结众多优点与特性。本人所制作的《丧尸猎人》(Zombie Hunter)即是基于此引擎所开发的一款3D角色扮演游戏(RPG),游戏整体设计方向为在传统RPG游戏基础上,简化玩家操作,采用自动攻击方式,玩家只需通过点击屏幕进行行走,当怪物进入玩家攻击范围时玩家会自动进行攻击,击杀怪物后可以获得金币奖励,以及随机掉落装备,实现了“单手操作,随走随停,放置挂机”的游戏特色,游戏的核心玩法即“消灭怪物获得奖励→强化自身实力→消灭怪物获得奖励”这样一个闭环。

游戏选用第三人称斜45°视角,展现战斗与模型特色,运用所选引擎中的预制体系统、粒子系统、渲染技术、光照探头系统等等,来实现高精度、高仿真的游戏场景地图的搭建。为了实现游戏的整体的UI界面设计以及交互功能,使用了Unity3D系统自带的拥有强大功能的UGUI系统。在实现游戏整体功能逻辑上,通过编写C#脚本然后使游戏物体搭载脚本组件以及引擎自有的碰撞检测系统、AI系统、动画系统组件来达成相关功能需求。整体开发过程中所得研究成果如下:

1.通过shader材质与贴图的使用,搭配光照探头系统,搭建了游戏场景展现游戏风格。使用了Unity3D复杂但优良的粒子系统实现了场景里火焰、沙尘、萤火虫等特效。

2.通过C#语言编写脚本搭配游戏中的碰撞器、触发器等实现了游戏内攻击、寻路、追踪、怪物刷新等逻辑功能。

3.使用Unity3D强大的UGUI搭建了游戏整体UI框架与操作交互,实现了血条系统、背包系统、场景跳转等功能 。

4.实现了制作一个简单的游戏,功能操作流畅,玩法新颖,用户体验良好。

本文通过国内外游戏行业的历史发展引入,以及历代引擎的革命性突破,大致阐述《丧尸猎人》整体开发过程中使用到的Unity3D中涉及到的相关技术点,然后从游戏需求分析、整体玩法与游戏框架结构设计、游戏开发阶段三个阶段详细介绍了游戏整体开发的过程,最终完成了《丧尸猎人》这款游戏。在实践中掌握了更多Unity3D开发游戏客户端过程中的技术与技巧。

关键字:Unity3D,RPG,游戏开发,UGUI,光照探头

ABSTRACT

In recent years, with the widespread popularization of 4G and the prospect of 5G network communication era, the game industry has been on the road of rapid development of considerable prospects. From the continuous evolution of stand-alone games, side games and mobile game, it can be seen that players and users have higher requirements for the demand and quality of games. Current hot style games, such as game of ball, glory of Kings, monument valley, etc., have one thing in common: they are all developed by Unity3D engine. As the most popular game development engine, Unity3D gathers many advantages and features. I made the "Zombie Hunter" is based on the engine developed by a 3 d roleplaying game (RPG), the overall design direction for the traditional RPG game, based on the simplified operation, adopts auto attack mode, players need to walk by clicking on the screen, when the monster into players attack range player will automatically attack, kill monsters can be obtained after the gold award, and random drops equipment, implement the "as you go, single hand operation, stop, put hang up" game features, The core gameplay of the game is "kill a monster to get reward → strengthen their own strength → kill a monster to get reward" such a closed loop.

The game adopts a third person Angle of 45° to show the characteristics of the battle and model, and USES the prefabricated system, particle system, rendering technology, light probe system and so on in the selected engine to achieve the construction of high-precision and high-simulation game scene map. In order to realize the overall UI interface design and interaction functions of the game, the UGUI system with powerful functions that comes with Unity3D system is used. In the logic of realizing the overall function of the game, the game object is equipped with script components and the engine's own collision detection system, AI system and animation system components through writing C# scripts to achieve the relevant functional requirements. The research results obtained in the overall development process are as follows:

1. Set up the game scene to show the game style through the use of shader materials and maps and the light probe system. The complex but excellent particle system of Unity3D was used to realize the special effects of flames, dust and fireflies in the scene.

2. Write scripts with C# language to match colliders and triggers in the game to achieve logic functions such as in-game attack, pathfinding, tracking and monster refresh.

3. Used the powerful UGUI of Unity3D to build the overall UI framework and operation interaction of the game, and realized the functions of blood bar system, backpack system, scene jump, etc.

4. Realized the production of a simple game with smooth functional operation, novel gameplay and good user experience.

This paper introduced the history of the game industry both at home and abroad, as well as the revolutionary breakthrough of engine in China's history, this paper roughly "zombie hunter" overall development in the process of using the Unity3D involved in related technical points, and then from the game needs analysis, the overall gameplay and the frame structure design, game development three stages are introduced in detail the whole process of development, finally completed the "zombie hunter" the game. In practice, I have mastered more techniques and skills in the process of Unity3D developing game clients.

Keywords: Unity3D, RPG, Game Development, UGUI, Lighting Probe

目 录

摘 要 I

目 录 1

第1章 绪论 1

1.1 课题研究背景及意义 1

1.2 国内外研究现状 3

1.3本论文研究的目标和主要内容 4

第2章 Unity3D特性介绍 4

2.1 Unity3D游戏引擎 4

2.2脚本语言 6

2.3UGUI 7

第3章 游戏需求分析与设计 8

3.1概要说明 8

3.2目标玩家与需求分析 9

3.3Roguelike玩法 10

3.4本章总结 10

第4章 游戏实现 11

4.1场景搭建 11

4.1.1地面搭建 12

4.1.2物体装饰 13

4.1.3光照探头系统 14

4.1.4粒子特效 16

4.2怪物刷新机制 20

4.3怪物系统 21

4.4动画系统 23

4.5UI系统 24

4.5.1血条系统 24

4.5.2场景跳转 25

第5章 总结 27

5.1概述 27

5.2展望 27

参考文献 28

致 谢 29

第1章 绪论

1.1 课题研究背景及意义

日新月异的新型技术不断推动着游戏行业的发展,从早期几k的像素游戏如《魂斗罗》、《坦克大战》,再到80、90年代的DOS游戏如《仙剑奇侠传》,再到现如今动辄几个或者几十个G的各种3A大作,游戏行业以肉眼可见的速度飞速发展,同时,迅猛发展的游戏行业反过来推动了图形学、AI、VR/AR等等学科方面上的发展。这种积极正向的反馈造就了游戏行业“第九艺术”的美称与瞩目的成绩。纵观游戏行业几十年的发展,RPG作为最久远的游戏类型之一,可以在非常多的游戏中找到这个类型的影子,可以说RPG游戏是整个游戏历史中的一根顶梁柱,撑起了整个游戏发展史的半边天,是游戏大厦不断向上添砖加瓦的基石保证。

那么富含历史印记的RPG到底代表什么样的游戏模式呢?RPG即Role-Playing-Game(角色扮演游戏),由此字面上意思可延伸出诸多问题,谁扮演,扮演谁,怎么扮演,要解答这些问题可从《龙与地下城》这款最具有代表性的RPG起源游戏来说明。《龙与地下城》最初是一款桌游游戏,其宏大且丰富的玩法规则DnD规则,包含了可成长游戏角色、剧情、随机事件等等富有特色与创意的玩法。但束缚于桌游的系统下,显现了受限于玩家数固定、传播缓慢等缺陷,然而在八十年代初改编移植到电子平台之后,这些缺陷被完美解决,由电子系统操控游戏中“上帝”角色,系统运算化身为“骰子”,基于此,RPG游戏的雏形已经显现,DnD规则也被不断引用改进,诞生了更为经典的《最终幻想》、《勇者斗恶龙》以及欧美三大RPG鼻祖《创世纪》、《巫术》、《魔法门》,因为OpenGL等图形API技术的发展,游戏画面愈发精美,游戏的数值系统的重要性以及完善程度对于游戏的可玩性的影响也开始逐渐的体现出来。九十年代随着ID Software公司开发了第一款游戏引擎Commander Keen energy以及第一款3D游戏引擎Wolfenstein 3D,空前强大的游戏引擎的出现,不仅大大缩短了游戏制作开发的时间,也给每一个爱好与致力于游戏开发的人提供了一个强大的工具。不仅如此,短短几年之后,相继问世的DOOM引擎(毁灭战士)与Quake引擎(雷神之锤)以及他们的同名游戏都成为ID Software公司里程碑式的成就。不同于寻常追名逐利的商人,ID Software公司创始人公布游戏源代码,与全世界游戏开发者共享技术,这么一种空前绝后的行为,为游戏引擎的快速发展作出了伟大贡献。

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

企业微信

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