基于Unity3D的迷宫类解谜游戏的设计与实现

基于Unity3D的迷宫类解谜游戏的设计与实现

摘要

近年来,随着科学技术的飞跃发展,各种科技产物也进入了每家每户,例如:电视,电脑,手机等,也有越来越多的人使用这些电子产品来消遣和娱乐。游戏,是当今许多年轻人娱乐手段中占比重较大的一项,甚至被一些人称之为“第九艺术”。合理适度的游戏能够让人们在模拟的环境下进行挑战和克服障碍,有助于帮助人们开发智力、锻炼思维和反应能力、培养合理规划能力等,大型网络游戏甚至还能培养团队精神和领导组织能力。

本课题选择使用当今最热门之一的游戏开发引擎Unity3D来制作游戏。Unity成立至今,已经逐渐实现了大众化、开源化。现在,Unity已经从一个游戏引擎成长成为了一个创作平台,跨越了游戏、VR/AR、影视动画、人工智能等多个领域。因此,学习好Unity在未来无论是从事游戏开发、3D网页开发、动画或者人工智能等行业,都会起到无法估量的作用。

本文拟制作一款迷宫类解谜游戏,玩家使用第一人称在对称式迷宫中寻找线索来推进游戏的进程。整个游戏的开发需要完成设计地图、解谜要素、第一人称视角的操控、UI界面以及敌人的AI。游戏设计过程中需要运用到一些数学算法,会用到动画系统以及状态机,要求设计者需要一定的逻辑思维能力以及创新思想,也需要对Unity引擎有较为熟悉的使用能力。开发出来的游戏具有一定的可玩性,除了锻炼设计者的编程能力和逻辑能力,更是旨在去理解解谜要素的设计思路。因此,本课题具有一定的研究价值。

关键词:游戏,第九艺术,Unity3D引擎,迷宫类解谜游戏开发


Design and implementation of maze puzzle game based on Unity3D

Abstract

In recent years, with the rapid development of science and technology, a variety of scientific and technological products have entered every household, such as TV, computer, mobile phone, etc. more and more people use these electronic products for recreation and entertainment. Game is one of the most important means of entertainment for many young people today. It is even called "the ninth art" by some people. Reasonable and moderate games can help people to challenge and overcome obstacles in a simulated environment, help people develop intelligence, train thinking and reaction ability, cultivate rational planning ability, etc. Large scale online games can even cultivate team spirit and leadership and organizational ability.

This topic chooses to use unity3d, one of the most popular game development engines, to make games. Since its establishment, unity has gradually realized popularization and open source. Now, unity has grown from a game engine to a creative platform, spanning games, VR / AR, film and television animation, artificial intelligence and other fields. Therefore, learning unity will play an immeasurable role in the future, whether it is engaged in game development, 3D web development, animation or artificial intelligence.

This paper intends to make a maze puzzle game, players use the first person to find clues in the symmetrical maze to promote the process of the game. The development of the whole game needs to complete the design map, puzzle solving elements, first person perspective control, UI interface and the enemy's AI. In the process of game design, we need to use some mathematical algorithms, animation system and state machine. It requires designers to have certain logical thinking ability and innovative ideas, and also need to be familiar with unity engine. The developed game has a certain playability, in addition to training the designer's programming ability and logical ability, but also aims to understand the design ideas of puzzle solving elements. Therefore, this topic has a certain research value.

Key Words: Game, The ninth art, Unity3D engine, Maze Puzzle Game development 


目    录

第1章 绪论

1.1 电子游戏的积极意义

1.2 电子游戏的发展趋势

1.3 研究意义与设计内容

1.4 论文组织

第2章 相关知识介绍

2.1 Unity3D引擎介绍

2.2 C#脚本语言介绍

2.3 解谜游戏的设计理念

第3章 游戏主要功能的设计与实现

3.1 标题界面

3.1.1 UGUI和TextMeshPro插件

3.1.2 背景音乐和音效

3.1.3 鼠标移入移出的音效和字体效果

3.1.4 鼠标点击事件

3.1.5 音量设置

3.2 迷宫地图场景

3.3 第一人称控制器

3.3.1 角色的移动功能

3.3.2 角色的跳跃功能

3.3.3 第一人称自由视角

3.3.4 射线碰撞检测

3.4 敌人AI的设计

3.4.1 敌人动画的设置

3.4.2 敌人自动搜索敌人的功能

3.4.3 敌人运动的功能

3.5 本章小结

4章 游戏内解谜元素

4.1 解谜游戏特性

4.2 本课题解谜元素的设计思路与灵感

4.3 部分解谜元素的设计与实现

4.3.1 旋转雕像

4.3.2 按顺序熄灭蜡烛

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值