当前位置: X-MOL 学术Comput. Animat. Virtual Worlds › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
An auxiliary development framework for lightweight RPG games based on Unity3D
Computer Animation and Virtual Worlds ( IF 1.1 ) Pub Date : 2023-08-31 , DOI: 10.1002/cav.2206
Bo Zhang 1 , Huiping Shi 1 , Xinyu Wang 1
Affiliation  

With the growing prevalence of virtual reality technology across industries like cinema, video animation, and gaming, game developers must cater to a wider range of players. Game engines serve as middleware, reducing the time spent on coding and improving productivity for creating video games. While mainstream game engines offer a plethora of customization options, certain developers may find themselves limited when it comes to controlling specific aspects of the game. Due to the lack of built-in functionality in current game engines like Unity and Unreal, the author developed TRPGFramework, a lightweight framework based on Unity3D, to address some of these problems. The game framework consists of two main parts: ZGamework (overall framework) and BGamework (game-specific framework). To enhance performance, scalability, and code reusability in the game development process, the entity-component-system structure is implemented. This approach increases maintainability and makes the code clearer, easier to expand, and debuggable. By creating a simple 2D RPG game for performance testing, we confirmed that the framework significantly improves code reusability and modularity, resulting in faster development time and increased efficiency for interactive applications and games. This framework is particularly useful for creating real-time combat role-playing games, which are some of the most complex games available today. Using entity-component-system principles, we developed a buff system and unit controller optimized to allow hundreds of intelligent units to fight on the same screen or thousands of non-intelligent units to fight simultaneously.

中文翻译:

基于Unity3D的轻量级RPG游戏辅助开发框架

随着虚拟现实技术在电影、视频动画和游戏等行业的日益普及,游戏开发商必须迎合更广泛的玩家。游戏引擎充当中间件,减少编码时间并提高创建视频游戏的生产力。虽然主流游戏引擎提供了大量的自定义选项,但某些开发人员可能会发现自己在控制游戏的特定方面方面受到限制。由于目前Unity、Unreal等游戏引擎缺乏内置功能,作者开发了基于Unity3D的轻量级框架TRPGFramework来解决其中的一些问题。游戏框架主要由两个部分组成:ZGamework(整体框架)和BGamework(游戏具体框架)。为了增强游戏开发过程中的性能、可扩展性和代码可重用性,实现了实体-组件-系统结构。这种方法提高了可维护性,并使代码更清晰、更易于扩展和可调试。通过创建一个简单的 2D RPG 游戏进行性能测试,我们确认该框架显着提高了代码的可重用性和模块化性,从而缩短了开发时间并提高了交互式应用程序和游戏的效率。该框架对于创建实时战斗角色扮演游戏特别有用,这些游戏是当今最复杂的游戏之一。使用实体组件系统原则,我们开发了一个经过优化的增益系统和单位控制器,以允许数百个智能单位在同一屏幕上战斗或数千个非智能单位同时战斗。
更新日期:2023-08-31
down
wechat
bug