天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當前位置:主頁 > 科技論文 > 軟件論文 >

基于Cocos2D-x的卡牌類游戲框架的設計與實現(xiàn)

發(fā)布時間:2018-03-13 20:24

  本文選題:Cocos2D-x 切入點:圖形學 出處:《吉林大學》2017年碩士論文 論文類型:學位論文


【摘要】:在人們追求更快捷便利的服務形式的大趨勢下,移動游戲出現(xiàn)在人們生活中。其中卡牌類手游已經成為國內手游市場的主流,在蘋果App Store中國暢銷榜前50的游戲中,卡牌類游戲占到了13款。卡牌類游戲一直以短周期、低成本、高風險、高利潤著稱,這樣的特征吸引了眾多冒險者前來開拓這片嶄新的領域。本論文根據(jù)當今智能手機以及卡牌類游戲發(fā)展現(xiàn)狀,對主流開源手機游戲引擎進行了總結。針對作者所要開發(fā)的2D卡牌類游戲,選定Cocos2D-x引擎進行開發(fā)。但該引擎無論在CPU利用率,場景資源管理,以及UI控件開發(fā)效率上均有所欠缺,不能很好的滿足卡牌類游戲的需求。作者首先對相關技術進行了詳細的研究,之后為了貼合所開發(fā)的2D卡牌類游戲,在Cocos2D-x引擎的基礎上,做了大量的改進。主要工作如下所示:1.優(yōu)化引擎渲染模塊?ㄅ祁愑螒蚴且环N低交互,長時間在線的游戲。而Cocos2D-x引擎為單線程引擎,并不能充分利用手機的多核CPU。所以作者首先分析了幾種多線程渲染引擎的特點,以及游戲循環(huán)時間同步方式,在詳細研究原渲染模塊結構之后,改寫了當前引擎的渲染模塊,實現(xiàn)了游戲線程和渲染線程的分離。提高了游戲運行時的CPU利用率,游戲運行幀數(shù)。2.優(yōu)化場景管理模塊。Cocos2D-x引擎不能滿足卡牌類游戲復雜場景的切換需求。針對這一問題,作者重寫了場景管理模塊,利用雙層狀態(tài)機的思想管理場景的加載和釋放。減少了游戲開發(fā)難度,同時優(yōu)化了場景資源的資源管理流程。3.構建新版UI系統(tǒng)。Cocos2D-x的UI系統(tǒng)在屏幕適配,擴展性和開發(fā)流程上均存在缺陷。作者在詳細研究原引擎的UI系統(tǒng)后,針對卡牌類游戲重寫了UI系統(tǒng)。新版UI系統(tǒng)分為配置文件管理模塊,核心模塊,系統(tǒng)級控件,游戲級控件,UI編譯器。新版UI系統(tǒng)更加貼合所要開發(fā)的2D卡牌類游戲,便利于開發(fā)者,大幅加快了開發(fā)效率以及降低了開發(fā)難度。論文結尾對引擎整體和UI系統(tǒng)進行了測試。并且使用這個框架,利用國外著名頁游的游戲UI重新制作成手機端卡牌游戲。該框架對實際的卡牌類游戲開發(fā)提供了一定的參考。
[Abstract]:Mobile games are emerging in people's lives as people pursue faster and more convenient forms of service. Among them, card and card mobile games have become the mainstay of the domestic mobile game market, with Apple App Store in the top 50 best-selling games in China. Card games account for 13. Card games are known for their short periods, low cost, high risk and high profits. This feature has attracted many adventurers to explore this new field. This paper summarizes the mainstream open source mobile game engine. The author chooses Cocos2D-x engine to develop the 2D card card game. But the engine can be used in CPU utilization, scene resource management, etc. The development efficiency of UI controls is not enough to meet the needs of card games. Firstly, the author makes a detailed study of the related technologies, and then in order to fit the developed 2D card games, based on the Cocos2D-x engine, A lot of improvements have been made. The main work is as follows: 1. Optimization engine rendering module. Card game is a low interactive, long-time online game. The Cocos2D-x engine is a single-threaded engine. It can not make full use of the multi-core CPU. so the author first analyzes the characteristics of several multi-thread rendering engines and the game cycle time synchronization mode. After studying the original rendering module structure in detail, the author rewrites the rendering module of the current engine. It realizes the separation of game thread and rendering thread, improves the CPU utilization rate of game running, and optimizes the scene management module. Cocos2D-x engine can not meet the switching requirements of complex scene of card game. The author rewrites the scene management module and manages the loading and releasing of the scene by using the idea of two-layer state machine, which reduces the difficulty of game development. At the same time, it optimizes the resource management flow of scene resources .3.Constructing the new version UI system. Cocos2D-x has defects in screen adaptation, extensibility and development process. After the author has studied the UI system of the original engine in detail, For card game rewriting UI system. The new version of UI system is divided into configuration file management module, core module, system-level control, game-level control UI compiler. At the end of the paper, we test the whole engine and UI system, and use this framework. This framework provides a certain reference for the development of card games by using the famous game UI of foreign countries to remake the mobile phone card card game.
【學位授予單位】:吉林大學
【學位級別】:碩士
【學位授予年份】:2017
【分類號】:TP317

【參考文獻】

相關期刊論文 前4條

1 李s,

本文編號:1608021


資料下載
論文發(fā)表

本文鏈接:http://www.sikaile.net/kejilunwen/ruanjiangongchenglunwen/1608021.html


Copyright(c)文論論文網All Rights Reserved | 網站地圖 |

版權申明:資料由用戶d93fb***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com