Font Size: a A A

Backend Design And Development Of The Game Arena System

Posted on:2018-02-23Degree:MasterType:Thesis
Country:ChinaCandidate:Y HeFull Text:PDF
GTID:2348330518487972Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the development of science and computer technology,the mobile intelligent terminal's function is getting more and more stronger,which is not only a communication tool,the more important is that it contains tens of thousands of APP services,people can do a lot of daily stuff with the mobile phones.Actually,The mobile game is a critical area,and there are more and more types of the games,which has become a part of the national pastime.One of the most main modules is the arena,which can attract players to play games.In this article,which research is how to develop the arena system on the back-end,the following is my main work:1 According to the functional requirements of the planning team,and with reference to previous RPG game's arena mode,which determines five function modules: RANK system,Challenger's choosing,Arena rewards,the Player's challenge record,Top3.Draw use-cases and write reports of use-case to Complete system requirement analysis.2 In this paper,the overall architecture of the arena system is B/S three layer structure,the presentation layer is the client which developed on the Unity3 d mobile engine,which do not belong to my work,I mainly completed the development of the data layer and business logic layer.3 Data layer is mainly for the database management system,which are Nosql databases,specific for the Mongo database and Redis memory database.Mongo database is the primary database,which record arena's information,such as: uid,ranking,VIP level the structured data,and some Json format of unstructured data such as players selecting challenger information that contained in his class,vehicle,equipment,etc.Redis is in-memory database,using it to cache information of each player's ranking,Zset ordered set is used to cache the ranking information,mainly using the ZADD,ZRANK,ZRANGE these commands to simplify the list updates,sorting,and so on.4 Business logic layer is mainly to write arena system business logic code on the API Server,the development language is Nodejs,the process of architecture is Nodejs Express framework,by defining the routing table to response corresponding to different request,the results that were processed by servers,which use the Json format file saved to send to front-end.Through the Push Server to send updates to the client,without the client's request,because the Push Server and client communication protocol is the Websocket protocol.5 Testing,mainly in the local server on the test,Unity3 d mobile engine as the client,by writing some Debug interfaces to complete the Arena functional testes in the back-end.Software development platform is Webstorm,the arena system leaderboard's information was stored in the Redis database,because the ordered set Zset of Redis' s commands which including sorting,adding,finding,which time complexity is(46)log(7)(8)(7)n(8),for the servers that has many players,the time that to get Top3 and update ranking list information is very short.And because of the Push Server's joining,the game achieves real-time response.The system has passed the test,officially launched in the game,so players can experience under the stimulation of PVP.
Keywords/Search Tags:Nodejs, Mongo database, Redis database, Express framework
PDF Full Text Request
Related items