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

當(dāng)前位置:主頁(yè) > 科技論文 > 軟件論文 >

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

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

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


【摘要】:在人們追求更快捷便利的服務(wù)形式的大趨勢(shì)下,移動(dòng)游戲出現(xiàn)在人們生活中。其中卡牌類手游已經(jīng)成為國(guó)內(nèi)手游市場(chǎng)的主流,在蘋(píng)果App Store中國(guó)暢銷榜前50的游戲中,卡牌類游戲占到了13款?ㄅ祁愑螒蛞恢币远讨芷凇⒌统杀、高風(fēng)險(xiǎn)、高利潤(rùn)著稱,這樣的特征吸引了眾多冒險(xiǎn)者前來(lái)開(kāi)拓這片嶄新的領(lǐng)域。本論文根據(jù)當(dāng)今智能手機(jī)以及卡牌類游戲發(fā)展現(xiàn)狀,對(duì)主流開(kāi)源手機(jī)游戲引擎進(jìn)行了總結(jié)。針對(duì)作者所要開(kāi)發(fā)的2D卡牌類游戲,選定Cocos2D-x引擎進(jìn)行開(kāi)發(fā)。但該引擎無(wú)論在CPU利用率,場(chǎng)景資源管理,以及UI控件開(kāi)發(fā)效率上均有所欠缺,不能很好的滿足卡牌類游戲的需求。作者首先對(duì)相關(guān)技術(shù)進(jìn)行了詳細(xì)的研究,之后為了貼合所開(kāi)發(fā)的2D卡牌類游戲,在Cocos2D-x引擎的基礎(chǔ)上,做了大量的改進(jìn)。主要工作如下所示:1.優(yōu)化引擎渲染模塊。卡牌類游戲是一種低交互,長(zhǎng)時(shí)間在線的游戲。而Cocos2D-x引擎為單線程引擎,并不能充分利用手機(jī)的多核CPU。所以作者首先分析了幾種多線程渲染引擎的特點(diǎn),以及游戲循環(huán)時(shí)間同步方式,在詳細(xì)研究原渲染模塊結(jié)構(gòu)之后,改寫(xiě)了當(dāng)前引擎的渲染模塊,實(shí)現(xiàn)了游戲線程和渲染線程的分離。提高了游戲運(yùn)行時(shí)的CPU利用率,游戲運(yùn)行幀數(shù)。2.優(yōu)化場(chǎng)景管理模塊。Cocos2D-x引擎不能滿足卡牌類游戲復(fù)雜場(chǎng)景的切換需求。針對(duì)這一問(wèn)題,作者重寫(xiě)了場(chǎng)景管理模塊,利用雙層狀態(tài)機(jī)的思想管理場(chǎng)景的加載和釋放。減少了游戲開(kāi)發(fā)難度,同時(shí)優(yōu)化了場(chǎng)景資源的資源管理流程。3.構(gòu)建新版UI系統(tǒng)。Cocos2D-x的UI系統(tǒng)在屏幕適配,擴(kuò)展性和開(kāi)發(fā)流程上均存在缺陷。作者在詳細(xì)研究原引擎的UI系統(tǒng)后,針對(duì)卡牌類游戲重寫(xiě)了UI系統(tǒng)。新版UI系統(tǒng)分為配置文件管理模塊,核心模塊,系統(tǒng)級(jí)控件,游戲級(jí)控件,UI編譯器。新版UI系統(tǒng)更加貼合所要開(kāi)發(fā)的2D卡牌類游戲,便利于開(kāi)發(fā)者,大幅加快了開(kāi)發(fā)效率以及降低了開(kāi)發(fā)難度。論文結(jié)尾對(duì)引擎整體和UI系統(tǒng)進(jìn)行了測(cè)試。并且使用這個(gè)框架,利用國(guó)外著名頁(yè)游的游戲UI重新制作成手機(jī)端卡牌游戲。該框架對(duì)實(shí)際的卡牌類游戲開(kāi)發(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.
【學(xué)位授予單位】:吉林大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類號(hào)】:TP317

【參考文獻(xiàn)】

相關(guān)期刊論文 前4條

1 李s,

本文編號(hào):1608021


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

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


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

版權(quán)申明:資料由用戶d93fb***提供,本站僅收錄摘要或目錄,作者需要?jiǎng)h除請(qǐng)E-mail郵箱bigeng88@qq.com