基于Unity的校园3D跑酷游戏的研究与开发
2017-03-21窦杨辉王巍何鑫毛文泰
窦杨辉+王巍+何鑫+毛文泰


摘 要: 介绍了基于Unity游戏引擎实现的校园主题的3D跑酷类游戏开发过程,Unity是一款跨平台的游戏引擎,基于该引擎可以很便捷的开发出适合多种平台运行的游戏。游戏开发过程包括场景搭建、人物创建、游戏脚本及逻辑实现,游戏逻辑部分对碰撞检测算法进行了详细的描述。实验结果表明,研究实现的第三人称视角跑酷游戏,用户体验好,校园主题贴近生活,能够为玩家带来不同于其他游戏的感受。
关键词: Unity游戏引擎; 跑酷游戏; 3D游戏; 碰撞检测
中图分类号:TP399 文献标志码:A 文章编号:1006-8228(2017)03-52-03
Abstract: The campus theme 3D Parkour game development process based on Unity is described. The Unity game engine is a cross platform game engine can be used to conveniently develop games on a variety of platforms. Game design includes scene building, character creation, game scripts and logic processing. The collision detection algorithm is introduced in the part of game logic. The experimental results show that the novel third person view Parkour game researched in this paper has good user experience, and the new game theme of campus life can bring game experience different from other games' to the game players.
Key words: Unity game engine; Parkour game; 3D game; collision detection
0 引言
近年来移动通信网络技术飞速发展,越来越多的人通过智能手机利用碎片化的时间来玩休闲类游戏,寻找乐趣放松心情,于是手游行业得到了快速的发展,其中跑酷类游戏因为其诸多优点而深受大众喜爱。例如最近几年来非常流行的跑酷类游戏就有Temple Run、Subway Surfers等。本文主要介绍利用Unity3D游戏引擎来开发一款休闲跑酷类游戏,以及利用Unity3D游戏引擎将游戏发布到Android平台上。
1 Unity游戏引擎介绍
Unity3D是Unity Technologies公司开发的专业游戏引擎。它能够让游戏开发者轻松创建出2D游戏、3D游戏,以及实现建筑可视化、实时三维动画等,其具有强大的跨平台性[1]。因为这些诸多优点,使得越来越多的游戏开发人员选择Unity3D游戏引擎。
2 校园跑酷游戏设计与实现
2.1 游戏开发前的准备工作
2.1.1 游戏类型
本游戏采用Unity3D游戏引擎为开发工具,采用C#脚本语言作为开发语言,通过智能手机的触摸技术而实现第三人称酷跑类游戏。……
