本文已被:浏览 1673次 下载 2523次
Received:October 11, 2019 Revised:November 07, 2019
Received:October 11, 2019 Revised:November 07, 2019
中文摘要: 游戏数字产业在数字经济发展中扮演着重要的角色,目前对于单机游戏的设计与开发比较多,多人在线3D网络游戏涉及的相对较少.本文结合网络通信原理,以Unity3D为基础,采用MVC架构,设计并实现了多人在线动作角色扮演游戏(ARPG).针对在线玩家场景的一致性问题,提出了位置同步、武器同步、伤害同步等通信协议.游戏界面是否友好,很大程度上影响玩家的用户体验,同时也影响着游戏的整体进度,对此设计出一种通用的UI框架.由于存在网络延迟,系统很难做到实时的、精确的玩家位置同步,因此本文采用预测式位置同步方法,有效减少了游戏运行时的延迟误差.
Abstract:The game digital industry plays an important role in the development of the digital economy. At present, there are many designs and developments for stand-alone games, but relatively few for multiplayer 3D online games. Combined with the principle of network communication, based on Unity3D, and using MVC architecture, this study designs and implements multiplayer online Action Role-Playing Game (ARPG). For the consistency of online player scenes, Communication protocol, such as position synchronization, weapon synchronization, damage synchronization, etc., has been proposed. Whether the game interface is friendly or not, would greatly affect the user experience of the player, and also affect the overall progress of the game. A general UI framework is designed for it. Due to the network delay, the system is difficult to achieve real-time and accuracy. The player’s position is synchronized, so this study uses the predictive position synchronization method, which effectively reduces the delay error during game running.
文章编号: 中图分类号: 文献标志码:
基金项目:黑龙江省高等教育教学改革研究项目(SJGY20180079、SJGZ20180010);东北石油大学研究生教育创新工程项目(JYCX_07_2018)
引用文本:
刘贤梅,刘俊,贾迪.Unity引擎下多人在线网络游戏的设计与开发.计算机系统应用,2020,29(5):103-109
LIU Xian-Mei,LIU Jun,JIA Di.Design and Development of Multiplayer Online Games Based on Unity Engine.COMPUTER SYSTEMS APPLICATIONS,2020,29(5):103-109
刘贤梅,刘俊,贾迪.Unity引擎下多人在线网络游戏的设计与开发.计算机系统应用,2020,29(5):103-109
LIU Xian-Mei,LIU Jun,JIA Di.Design and Development of Multiplayer Online Games Based on Unity Engine.COMPUTER SYSTEMS APPLICATIONS,2020,29(5):103-109