基于 Unity3D 的消防员角色扮演游戏的设计与实现 Design and implementation of fireman role playing game based on Unity3d 内容摘要近几年来,市场上的科普游戏越来越受人们重视,而在现有的市场上,关于消防员的游戏普遍都是以 2D 或 2.5D 画面为主,并且皆是玩家简单地操作游戏人物进行灭火,科普效果并不显著。因此,开发一款以第一人称为视角并且加入训练元素的消防员角色扮演类游戏十分有意义。本次课题通过收集消防员的日常训练资料、真实的火灾危害数据以及救援方式数据,再结合影视作品、书籍等方向进行研究探讨,从而制作具有一定真实性的游戏关卡。本次课题研究开发的游戏是一款基于 Unity3D 游戏开发引擎开发的第一人称视角的消防员角色扮演类游戏,游戏首先以地形编辑器 Terrain 制作游戏地形,以模型制作软件 3D Studio Max 制作以及修改模型加以辅助,结合 Unity 引擎自带的粒子效果控件,创造具有真实感的火灾现场场景。在游戏中的人物操作则是通过运用Unity3D 游戏开发引擎中自带的角色控制器 CharacterController 实现人物移动控制以及视角控制。再利用射线检测碰撞、碰撞触发器算法以及 Enum 算法等方式实现了在游戏中不同的状态拥有着不同的效果发生,提高了游戏的可玩性与真实性。最后结合设定好的流程,使玩家更好地代入消防员角色之中。综上所述,本次课题研究开发的游戏具有完整性以及创新性,具有较高的研讨价值及运用价值和学习价值。关键词: Unity3D 消防员 角色扮演 真实 学习AbstractIn recent years, popular science games in the market have attracted more and more attention from people. However, in the existing market, firefighter games are generally based on 2D or 2.5d pictures, and players simply operate the game characters to put out the fire. The popular science effect is not significant. Therefore, it makes sense to develop a firefighter role-playing game with the first person as the perspective and training elements.This project collects the daily training data of firefighters, the real data of fire hazards and the data of rescue methods, and then conducts research and discussion in combination with ...