摘要
本文基于Unity3D技术对多人在线角色扮演类游戏进行了设计及实现.为了增强游戏的效果,采用了角色控制状态机与交互取值算法、移动策略和人工智能交互等关键技术.针对如何改善游戏运行时的工作效率问题,提出了使用协同程序技术实现预先式同步数据读取.将协同程序技术应用在地图预读取中,使漫长的地图读取过程可以在运行期的"闲时"进行处理.效能分析实验证明了该优化方法有效降低了程序时间复杂度,有效解决了游戏运行时的实效性问题.
A MMORPG(massively multiplayer online role-playing games) is developed based on Unity 3D. The character controller, the mouse-value interactive algorithm, the motion strategy and the AI-interaction are used to enhance the game performance. In order to improve the working efficiency of game, this paper proposes client resource forecast and synchronous reading by using coroutine technology. The strategy that uses coroutine technology in forecast reading of maps can make it possible to have long-time reading running in the spare time of the system. Experimental performance analysis and experimental results both show that the optimization method proposed can effectively reduce the time complexity of the program and enhance the efficiency of game runtime.
作者
吴晶晶
戴智超
WU Jing-Jing DAI Zhi-Chao(College of Mathematics and Computer Science, Quanzhou Normal University, Quanzhou 362000, China Fujian Provincial Key Laboratory of Data Intensive Computing, Quanzhou 362000, China Key Laboratory of Intelligent Computing and Information Processing, Fujian Province University, Quanzhou 362000, China)
出处
《计算机系统应用》
2017年第10期133-138,共6页
Computer Systems & Applications
基金
福建省科技厅自然科学基金面上项目(2017J01776)
福建省省属高校科研专项项目(JK2015037)
泉州师范学院青年博士预研基金项目(2015QBKJ02)
泉州师范学院博士科研启动项目(G17003)