基于Unity3D的拼图游戏设计

本论文主要论述了用Unity3D软件开发拼图游戏的全过程。该拼图游戏的界面是分析了休闲玩家比较适合暖色调和圆润边角设计,但是从另一个角度来看也是比较复古保守的,参考当下的流行风格


摘   要:Unity在2005年6月诞生,到2017年已经拥有46%的游戏引擎市场份额,并且它的开发者、游戏用户以及下载量均已达到全球第一,使用Unity开发一款拼图游戏不仅顺应了当前的游戏开发趋势,同时也可以充分锻炼本人的技术及能力。

   本文将展示开发拼图游戏的全过程。遵照游戏的开发思路,从Unity3D及其他开发软件相关知识的介绍、游戏的整体需求分析、拼图游戏的结构与逻辑设计到最后的游戏实现逐步展开工作,最终完成毕业设计作品。本文将着重论述需求分析和游戏实现这两个部分,需求分析部分将从功能、界面、可行性等方面严谨的分析论证本课题的研究思路,而游戏实现这部分则是论述从场景的建立、原型界面的制作、到脚本编写等具体步骤。最后追求的结果就是能分别在Unity和Android端上完美运行。

关键词:Unity3D;拼图游戏;图片

ABSTRACT :Unity was born in June 2005, and by 2017 it had 46% of the game engine market share, and its developers, game users and downloads have reached the world first, the use of Unity to develop a jigsaw puzzle not only conform to the current game development trends, but also can fully exercise my skill and ability.

This article will show the whole process about designing the jigsaw puzzle game. In accordance with the game ideas of the development, introduce the related information of Unity3D and other development software, integral demand analysis, the design of structure and logic, the final game realization, until the final completion of graduation design works. This article will focus on demand analysis and game realization. Demand analysis seriously argument the subject of research ideas from the function, interface, feasibility and so on. Game achieved this part is discussed from the scene of the establishment, the prototype interface production to the script and so on. The pursuit of the final result is the ability to run perfectly on Unity and Android.

Keywords:Unity3D;Jigsaw puzzle game;Picture

目  录

第一章 绪论 1

1.1 选题的目的和意义 1

1.2 国内外的发展状况 1

1.3 论文结构 2

第二章 Unity引擎简介和开发环境 3

2.1 Unity3D 3

2.2 开发语言 3

2.3 NGUI和UGUI 3

2.4 本章小结 4

第三章 需求分析 5

3.1 系统功能需求 5

3.2 系统界面需求 5

3.3 系统安全性需求 6

3.4 系统假设与约束条件 7

3.5 本章小结 7

第四章 游戏设计 8

4.1 系统结构化设计 8

4.2 系统设计方案拟定 8

4.3 详细设计 9

4.3.1 游戏UI 9

4.3.2 图片移动模块 9

4.3.3 图片打乱模块 9

4.4.4 结果判断与结算模块 10

4.4.5 难度模块 10

4.4.6 声音模块 11

4.4 本章小结 11

第五章 游戏实现 12

5.1 游戏UI实现 12

5.1.1 原始模型界面 12

5.1.2 完全界面实现 14

5.2 图片移动模块 15

5.3 图片打乱模块 16

5.4 结果判断和结算界面 17

5.5 难度模块 17

5.6 声音模块 18

5.7 在Unity3D中运行 18

5.8 Android平台运行 18

5.9 运行结果 21

5.10 本章小结 21

总    结 22

致    谢 24

参考文献 25

第一章  绪论

1.1 选题的目的和意义

2016年中国游戏市场的销售收入为1600多亿,17.6%的同比增长率与去年相比较有所减缓[1]。在2016年里,中国游戏用户规模达到5.66亿人,在如此庞大的用户数量支撑下,游戏产业己经成为经济市场中的焦点之一。根据2016年的全年统计,国内已经有了一百五十几家上市游戏企业,这些上市企业中的八成都是A股上市企业,上市游戏企业中的A股企业仍在增加,这是因为国内的资本市场已经开始全面认同游戏的资产价值。文化创意产业中很重要的一部分就是游戏[2],在知识经济的核心内容中,创意经济扮演了一个相当重要的角色,创意带来了新的经济形式,与此同时,游戏带来的各种产业链是完整的,类似于直播平台、营销与推广、虚拟货币购买、游戏教育这些。游戏产业在中国当前的经济发展中扮演了十分重要的角色,它带来的正面效益是: