Font Size: a A A

The Design And Implementation Of Game Function Module Based On Unity

Posted on:2021-05-01Degree:MasterType:Thesis
Country:ChinaCandidate:R J ZhaoFull Text:PDF
GTID:2428330602481472Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In recent years,with the advancement of computer science technologies and the popularization of mobile phones,there is an increase in daily demand of mobile devices.Therefore,the leisure demand in mobile devices has resulted in the development of relevant scientific technologies.The development of physics and graphics has gradually led to the advancement of powerful and multi-platform professional game engines.Unity3D is among these powerful engines.With the game engines,mobile games industry is allowed to grow rapidly,a comprehensive mobile game development framework and solution system is gradually formed as the domestic game industry matures.Due to the relevant policy support,the game industry has created enormous economic values,and has slowly expanded to foreign markets.Currently there are hundred thousand of games exist in the domestic mobile game market,the varieties of games are diverse with the chess&card strategy games being the most popular category.Although many games are similar to each other,and the in-game battery consumption and memory usage are usually too much,thus most of the game system design still requires optimization.Based on project,this article provides optimization to the common issues of current games,and the solutions to the frequent used function modules in mobile games by analyzing the key technologies used in developing these games.This article elucidates the details of the methods to develop the function modules of a chess&card strategy game that runs on mobile phone.Through analyzing the existing game modules design,we developed modules with more functions by integrating corresponding functions.We explore Unity engine,proceed to systemically design the game modules and develop the module framework via using C#and Lua language.This allows us to systematically analyze the development and the structure of playable characters system,backpack system,email system and event system in the game.Through adopting UGUI system components,coupled with ToLua,we separate the interrelated logic of UI with the game main thread,and this enables users to avoid downloading the entire app when the online environment requires bugs fixation.In such way,it is possible to provide a unified file resources loading interface,and based on the file loading mechanism of Unity,the loading and unloading of resource is achieved by the asynchronous loading and object pool method.We enable the element asynchronous loading in backpack system based on ScrollRect components,and the observation mode that bind the event and response in the game with applying protoBuf sequence to define the communications protocol.In the email system,during users' browsing we have achieved the data paging based on Text components rich text display.In the event system we achieved the game time system management and CSV files configuration loading.Through analyzing the designing process of function modules,we hope to introduce a method that consider the different aspects of function modules which then provide solutions to major issues during mobile game development,including info framework,resource management and model rendering.We would like to have this method as a reference for future game design.The project has been tested publicly for three times,with almost ten thousand users participated in the test.The data presentation is favorable during the test without major bugs.Users have given positive feedback after the test,and this project has a relatively high users retaining rate which shows it can better meet the users' leisure and social demands.
Keywords/Search Tags:Unity3d Engine, Mobile phone game, Lua
PDF Full Text Request
Related items