基于Cocos2d-x引擎的移动游戏设计与应用Design and application of mobile game based on Cocos2d-x
吴晓雪,何南,缪新颖,王魏
摘要(Abstract):
文中利用Cocos2d-x游戏引擎,在Visual Studio 2017开发环境下,结合LUA脚本语言,开发一款适用于Android系统的休闲益智游戏,即"贪吃蛇"。首先提出Android游戏开发的总体框架,总结Android游戏开发涉及的关键技术,包括开发环境配置技术、逻辑功能设计技术及碰撞检测技术。对Cocos2d-x手机游戏引擎的部分源码进行深入分析,对不适用于贪吃蛇游戏框架搭建的代码采用继承、重写等方式进行改进。经测试表明,系统可实现贪吃蛇基本功能,对基于Cocos2d-x手机游戏的设计和实现有一定参考价值。
关键词(KeyWords): 贪吃蛇;Cocos2d-x;手机游戏;LUA;逻辑功能设计;碰撞检测
基金项目(Foundation): 国家自然科学基金项目(51679024)资助;; 辽宁省普通高等教育本科教学改革研究项目(UPRP20160333)资助;; 辽宁省国际教育“十三五”科研规划课题(16LNGJ045)资助~~
作者(Author): 吴晓雪,何南,缪新颖,王魏
DOI: 10.16652/j.issn.1004-373x.2018.24.026
参考文献(References):
- [1]陈羽修.基于Android贪吃蛇游戏的设计与实现[J].科技视界,2016(1):220-221.CHEN Yuxiu. Design and implementation of Gluttonous Snake game based on Android[J]. Science&technology vision,2016(1):220-221.
- [2]舒沂.基于Cocos2d-x引擎的手机游戏快速开发工具的设计与实现[D].南京:南京大学,2013.SHU Yi. Design and implementation of fast development tools based on Cocos2d-x engine for mobile phone games[D]. Nanjing:Nanjing University,2013.
- [3]李勇.基于Cocos2d-x引擎的游戏架构设计与实现[D].北京:北京邮电大学,2015.LI Yong. Design and implementation of game framework based on Cocos2d-x engine[D]. Beijing:Beijing University of Posts and Telecommunications,2015.
- [4]霍常伟.基于Cocos2d-x引擎的移动游戏UI系统设计及应用[D].北京:北京交通大学,2012.HUO Changwei. Design and application of UI system based on Cocos2d-x engine for mobile game[D]. Beijing:Beijing Jiaotong University,2012.
- [5]韩文智,骆文亮.Android平台的移动APP开发方法与应用研究[J].四川理工学院学报(自然科学版),2015,28(3):22-26.HAN Wenzhi,LUO Wenliang. Development method and application research of mobile APP based on Android platform[J].Journal of Sichuan University of Science&Engineering,2015,28(3):22-26.
- [6]佚名.Android开发:开发环境搭建之工具下载[EB/OL].[2014-02-13]. https://jingyan.baidu.com/article/9989c746006248f648ecf eb7.html.Anon. Android development:downloading of tools for development environment establishment[EB/OL].[2014-02-13]. https://jingyan.baidu.com/article/9989c746006248f648ecfeb7.html.
- [7]贺敬凯.基于FPGA平台下的贪吃蛇游戏开发研究[J].深圳信息职业技术学院学报,2015,13(3):17-21.HE Jingkai. Development of snake game based on FPGA platform[J]. Journal of Shenzhen Institute of Information Technology,2015,13(3):17-21.
- [8]崔浩然.基于Android平台的手机游戏的设计与实现[D].西安:西安科技大学,2011.CUI Haoran. Design and implementation of mobile phone game based on Android platform[D]. Xi’an:Xi’an University of Science and Technology,2011.
- [9]杨传亿.基于移动设备的教育游戏的设计与开发[D].上海:华东师范大学,2010.YANG Chuanyi. Design and development of education games based on mobile devices[D]. Shanghai:East China Normal University,2010.
- [10]杨伟,肖义平.基于STM32F103C8T6单片机的LCD显示系统设计[J].微型机与应用,2014,33(20):29-31.YANG Wei,XIAO Yiping. LCD display system design based on MCU STM32F103C8T6[J]. Microcomputer&its applications,2014,33(20):29-31.
- [11]周飞龙.Cocos2d-x引擎中MVC框架的设计与实现[D].武汉:华中科技大学,2013.ZHOU Feilong. Design and implementation of MVC framework on Cocos2d-x engine[D]. Wuhan:Huazhong University of Science and Technology,2013.