Font Size: a A A

Design And Implementation Of Game Logic Engine Based On Unity

Posted on:2016-06-25Degree:MasterType:Thesis
Country:ChinaCandidate:G YangFull Text:PDF
GTID:2308330479491521Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In recent years, the number of video games are growing quickly. The variety of games is also becoming richer and richer. And game development cycle has become much shorter as well. All of which forms an increasingly urgent call for higher productivity and maintainability of game logic. With the emergence of many game engines, rendering, physics, sound, and other hard parts of game development has been greatly simplified. However, most of these popular game engines do not provide good game logic solutions, which further stresses the difficulty, complexity and low reusability issues in game logic development.In order to solve those problems encountered during the development of game logic, after an in-depth analysis, this paper proposes a game logic engine integrated with three tools, i.e. state machine, timeline and visual programming language. Through seamlessly integration of those most commonly used tools in game logic development, this system can develop various types of game logic in a quick and easy way, while still guarantee high reusability and maintainability.This system works as a plugin in Unity game engine, in order to achieve functional requirements, the system is divided into two parts: the script execution component and script editing tool. The script execution component is responsible for execution of all game logic, which is equivalent to the virtual machines in traditional programming languages. The execution component contains a hierarchical state machine, when an event is triggered, such as state transition or scene update, the attached visual scripting language, or event graph, is executed immediately, thus executing the game logic. The timeline tool, as one of the components in event graph system, allows WYSIWYG editing of animation s. The script editing tool runs in Unity editor, as an editor window, implements the editing functionality for state machines, event graphs, and other tools in script execution component. Further more, this paper also discussed the design and imp lementation of debugging, undo-redo system and other functionalities in script editing tool.Finally functional and non-functional tests are done, as the overall test results matches expectations well, it is sure that the system has already achieved the expected functional and non-functional requirements. The entire game logic engine has been put into actual use and operation.
Keywords/Search Tags:Game logic, State machine, Timeline editing, Visual scripting language, Unity
PDF Full Text Request
Related items