Font Size: a A A

Design And Implementation Of Tank War Game Based On Unity3D

Posted on:2019-04-24Degree:MasterType:Thesis
Country:ChinaCandidate:D F GuoFull Text:PDF
GTID:2348330542463958Subject:Computer technology
Abstract/Summary:PDF Full Text Request
As Mobile Internet technology in China is entering into an accelerating development period,the mobile platform has been the most popular game development platform.With the development of smart hardware equipment performance,mobile platform is becoming the third largest major gaming platform with an increasing trend year by year after PC and Host.In this project,a 3D tank shooting game based on Unity3 D is designed and realized.The main work is as follows:Firstly,a requirement analysis of the 3D tank shooting game is completed.The game is divided into four parts,which are UI system,combat system,achievement system and mall system.UI system mainly deals with human-computer interaction and scene switching.The fast switching of scene and the show of 2D scene superpose 3D scene are realized by asynchronous accumulation and asynchronous loading.The combat systems mainly include skill systems and NPC intelligent control.Ordinary shells and special effects of shells are seen as different skills in the skill system.The release of skills and the enemy injury settlement are achieved by the skill releaser.Secondly,the collision detection between rigid objects in 3D virtual environment is completed by using the encircling ball,the direction bounding box technique and the OBB algorithm.When the collision is detected,the position of the first collision between the convex bodies is computed by the intersection of the ray and the convex body,and a collision response is generated timely.At the same time,the A* algorithm based on navigation grid is used to find an optimal path.And the NPC is moved from starting point to the destination so that NPC intelligent pathfinding is realized.Then,a sensing system and a FSM for tank war games are designed and implemented.The sensing system uses the surrounding ball and the collision detection technique to design the sensor,the induction system and the trigger.The sensor senses the external information,and the trigger sends out its own information.The cross process between the sensor and the trigger is handled by sensing system.The sensor senses different information to generate different input conditions.After these conditions are processed by FSM,the NPC can be switched among a limited number of states.Multiple NPC use Manipulation system based on fuzzy logic to control a variety of different behaviors.Finally,the game scene is realized by Unity3 D engine.The logic processing of the game is realized by C# language.The occlusion culling technique is used to reduce the amount of rendering by eliminating objects that are not visible to the current camera.At the same time,the LOD algorithm is used to simplify the details of the object,reduce the geometric complexity of the scene and improve the efficiency of rendering algorithm.In addition,techniques such as batch processing,atlas and object pooling are used to increase the game frame rate and optimize the performance of the game.
Keywords/Search Tags:Unity3D, Collision detection, FSM, LOD, Sensing system
PDF Full Text Request
Related items