Font Size: a A A

Design And Implementation Of 2D Role Playing Game Based On Unity Engine

Posted on:2022-05-27Degree:MasterType:Thesis
Country:ChinaCandidate:Y S LuFull Text:PDF
GTID:2518306335486824Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In recent years,with the rapid development of the Internet and computer industry,the game industry has developed rapidly.Games with novel characteristics emerge in endlessly.Game entertainment has become a necessity of modern young people's life,and games are gradually integrated into people's daily life.Different games have different adaptive groups,contact with more and more people,the game industry has been rapid development.With the rapid development of the game industry,how to develop games,how to develop better games,has become the key of modern game development industry.Game engine has become a necessary development tool for many enterprises and development teams.Its powerful performance,convenient use,greatly shorten the development cycle,greatly improve the R & D efficiency of developers,has been praised by the majority of game developers.As a professional game engine,unity3 d has a builtin integrated development platform,and has cross platform functions to develop small and medium-sized enterprises The efficient characteristics of the game stand out among many game engines,which provides a new solution for game development.Using unity3 d engine to develop the game,developers only need to solve the character input and output,character animation and logic matching,clear and fast operation interface and UI interface,complete game logic,and write the corresponding script of each module,so as to make the game achieve the expected goal.This paper uses unity3d engine to design and implement a 2D role-playing game including combat,puzzle solving and operation as the core of the game.In the innovation of the paper,the FSM state machine technology is used to realize the state switching of the characters in the game,which makes the design of the characters in the game more convenient.In the aspect of character movement,the position repair method is adopted to make the collision real-time monitoring more accurate.According to the expected requirements of the game,the overall structure and the corresponding functions of each module are solved,and how to realize each module and how to cooperate with each other to achieve the expected goal are explained,so that readers can understand the development process of small and medium-sized games.This paper introduces the development of game and game engine,and expounds the powerful functions and engine features of unity3 d engine,and introduces ugui plug-in and text Meshpro plug-in realizes the basic UI interface of the game,mainly uses C#language programming to realize the basic logic control in the game.The game camera adopts the basic graphics rendering technology of Open GL,and uses the occlusion elimination technology and texture mapping technology to reduce the rendering amount,uses the collision detection technology to complete the interaction between the character and the game object,and uses the state machine technology to realize the character's Animation switching and logical behavior control,in terms of optimization,single instance design mode and image pool technology are used to improve game efficiency and optimize game performance.
Keywords/Search Tags:Unity3D, collision detection, finite state machine, role playing, game development
PDF Full Text Request
Related items