基于 Unity 引擎的多人合作休闲类游戏的设计与实现 Design and implementation of multiplayercooperative leisure games based on unity engine 内容摘要□□本文使用了 Unity3D 引擎对一个多人合作休闲类游戏进行了设计和实现,游戏使用了第三人称俯视视角。文章中主要包含了游戏的系统分析和整体设计部分,各个模块的实现方法,以及最终的游戏测试部分。完全实现了游戏的联机功能与多人合作休闲类游戏的基本架构。该游戏采用了角色控制状态机与交互取值算法、移动策略和人工智能交互等关键技术. 针对如何改善游戏运行时的工作效率问题, 提出了使用协同程序技术实现预先式同步数据读取. 将协同程序技术应用在地图预读取中, 使漫长的地图读取过程可以在运行期的“闲时”进行处理. 效能分析实验证明了该优化方法有效降低了程序时间复杂度, 有效解决了游戏运行时的实效性问题。□□关键词:网络游戏 多人游戏 休闲类游戏 Unity3D 引擎 地图预读取 交互取值算法 协同程序技术Abstract □In this paper, the unity3D engine is used to design and implement a multiplayer cooperative leisure game. The game uses the third person perspective. This paper mainly includes the system analysis and overall design of the game, the implementation of each module, and the final game test part. It has fully realized the online function of the game and the basic structure of multi person cooperative leisure games. The key technologies of the game, such as role control state machine and interactive value algorithm, mobile strategy and artificial intelligence interaction, are adopted. Aiming at how to improve the working efficiency of the game, the collaborative program technology is proposed to realize the pre synchronous data reading. The collaborative program technology is applied in the map pre reading, The long process of map reading can be processed in the "idle time" of the running period. The efficiency analysis experiment proves that the optimization method effectively red...