Font Size: a A A

Design And Implementation Of The Card Game Named Three Kingdoms Based On Cocos2d-x

Posted on:2017-03-26Degree:MasterType:Thesis
Country:ChinaCandidate:R C WangFull Text:PDF
GTID:2308330509457576Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In recent years, with the rapid development of smart phones and smartphones production cost is reduced, the number of smartphone users is on a spurt of growth, thus promoting the rapid development of mobile applications and m obile games. In terms of mobile games, in the past two years card game is highly popular, many game companies have developed the card games. During the internship in Flyfish co.,Ltd, the company turn the direction to the card game, after a lot of card games on the market for investigation, and found that most of the card is almost the same, the game background is the main difference. If for each card game recoding, poor code reusability was gradually emerges.In order to solve the problem of the recoding, in this paper, the card game is divided into general game function and the business logic, a common framework is implemented, and based on this framework implementation completed a three king card game.In this paper, the game consists of two aspects of the client and server. Client based on the Cocos2d-x game engin, through the game analysis of the function modules, design system, implements more than 10 universal logic modules of card game, and the key to realize the fight scenes in the card game. Server uses Fire Fly framework as the game server framework, implements the game the business logic of the function modules, including MySQL as data storage media, and the framework are expanded to modify, amend the database cache by Memcahced to Redis, improve the efficiency of the server framework. In this paper, the abstract separation step by step and encapsulate the sleeve card game development framework, the framework can be secondary development, is advantageous for the extension and use. Packaging according to project requirements, project implements the network request module, the game hot fix module and the data encryption module, these modules can be used as a dependent libraries for other project, improve work efficiency.In order to ensure the correctness and completeness of gaming capabilities, the game client and the server are tested by function test and performance test, and the analysis of test data show that this game has reached the expected goal.
Keywords/Search Tags:Card Game, Cocos2d-x, Fire Fly, Hot Fix
PDF Full Text Request
Related items