cocos2dx引擎的手机卡牌游戏开发
4炉石传说是一款非常容易上手的卡牌类游戏,其特点有点像‘德克萨斯扑克,新手很容易学会,而高手又有钻研技巧的空间。它的游戏模式是1对1,你需要将摸到的牌进行合理的搭配与组合,然后在最佳时机打出,逐渐将对手的生命值削为0。 每张卡牌的作用介绍都控制在一句话之内,非常简单易懂,就算你完全没有接触过此类游戏,也能马上知道自己可以做些什么——五分钟上手,十分钟一局!而炉石传说在现在的市场情况下,却始终没有将市场扩展到手机终端,而此次的课程设计是做一款以炉石传说为背景的手机游戏。游戏是在windows环境下开发的。基于cocos2d-x游戏引擎,跨平台性很强,为以后转移到不同平台做准备。
目 录
Abstract5
Key words5
引言5
1 研究背景6
1.1 国内外研究现状6
1.1.1 卡牌类游戏6
1.1.2 2D手机游戏引擎7
1.2 项目主要工作8
1.3 本文组织结构8
2 开发平台及应用技术8
2.1 Microsoft Visual Studio 2010平台8
2.2 C++9
2.3 cocos2dx引擎9
2.4 科大讯飞InterPhonic5.0工具9
2.5 光影魔术手工具9
3 cocos2dx引擎主要功能介绍10
3.1 基本语法10
3.2 触屏事件10
3.3 生命周期11
3.4 更新函数11
3.5 坐标系与锚点Z轴遮盖关系12
3.5.1 坐标系12
3.5.1 锚点12
3.5.1 遮挡关系(Z轴)13
3.6 消息机制13
3.7 动作14
4 项目设计15
4.1 可行性分析15
4.2 用户需求分析15
4.3 功能模块设计16
4.4 游戏玩法设计17
4.5 流程图22
4.6 基本操作玩法23 *好棒文|www.hbsrm.com +Q: ^351916072^
5 项目相关资源与工程 18
5.1 资源18
5.1.1 图片资源18
5.1.2 音乐资源21
5.2 工程介绍21
6 项目实现24
6.1 菜单界面Menu24
6.2 英雄界面HWorld27
6.3 卡牌界面CWorld28
6.4 战斗界面FWorld31
6.5 结算界面38
7 项目测试40
7.1 测试的定义及其重要性41
7.1.1 测试的定义41
7.1.2 测试的重要性41
7.2 测试实例的研究与选择41
致谢42
参考文献42
基于cocos2dx引擎的手机卡牌游戏开发
计算机科学与技术专业学生 于雷
指导教师 徐焕良
Phonebased card game engine development cocos2dx
Student majoring in Computer Science and Technology Yu Lei
Tutor Xu Huanliang
Abstract: Hearthstone legend is a very easy to use card game, which features a bit like Texas Poker, the novice is very easy to learn, and master skills in another study space. Its game mode is 1 to 1, you need to touch the cards with a reasonable combination, then the best time to play, gradually cut the opponents health to zero. Describes the role of each card are controlled within a word, the very simple and easy to understand, even if you have absolutely no contact with such games, but also to immediately know that they can do what five minutes to get started, ten minutes a game! the Hearthstone legends in the current market conditions, the market has never extended to mobile terminals, and the curriculum is designed to do a background Hearthstone legend mobile games. The game is developed in a windows environment. Based on cocos2dx game engine, strong crossplatform for the future to prepare for transfer to a different platform.
Key words: cocos2dx Hearthstone legend card, ios,
1 研究背景
1.1 国内外研究现状
1.1.1 卡牌类游戏
随着智能手机的不断发展,手机已经成为人们生活中不可或缺的物品,传统的功能手机主要用于通讯,与当今的智能手机相比,智能手机更像是一台小型的移动电脑,丰富的功能可以满足用户各种不同的需求,而手机软件成为了承载不同功能的载体。
2008年3月6日,苹果对外发布了针对iPhone的应用开发包(SDK),供免费下载,以便第三方应用开发人员开发针对iPhone及Touch的应用软件。不到一周时间,3月12日,苹果宣布已获得超过100,000次的下载,三个月后,这一数字上升至250,000次。[1]苹果公司一直以来推出的产品在技术上都保持一定的封闭性,比如当年的Mac,此次推出SDK可以说是前所未有的开放之举。继SDK推出之后,同年7月11日,苹果APP Store正式上线。7月14日,App Store中可供下载的应用已达800个,下载量达到1千万次。[2]2009年1月16日,数字刷新为,逾1.5万个应用,超过5亿次下载。2011年1月6日,App Store扩展至mac平台。APPStore平台上大部分应用价格低于10美元,并且有约20%的应用是供免费下载的。用户购买应用所支付的费用由苹果与应用开发商3:7分成。
目 录
Abstract5
Key words5
引言5
1 研究背景6
1.1 国内外研究现状6
1.1.1 卡牌类游戏6
1.1.2 2D手机游戏引擎7
1.2 项目主要工作8
1.3 本文组织结构8
2 开发平台及应用技术8
2.1 Microsoft Visual Studio 2010平台8
2.2 C++9
2.3 cocos2dx引擎9
2.4 科大讯飞InterPhonic5.0工具9
2.5 光影魔术手工具9
3 cocos2dx引擎主要功能介绍10
3.1 基本语法10
3.2 触屏事件10
3.3 生命周期11
3.4 更新函数11
3.5 坐标系与锚点Z轴遮盖关系12
3.5.1 坐标系12
3.5.1 锚点12
3.5.1 遮挡关系(Z轴)13
3.6 消息机制13
3.7 动作14
4 项目设计15
4.1 可行性分析15
4.2 用户需求分析15
4.3 功能模块设计16
4.4 游戏玩法设计17
4.5 流程图22
4.6 基本操作玩法23 *好棒文|www.hbsrm.com +Q: ^351916072^
5 项目相关资源与工程 18
5.1 资源18
5.1.1 图片资源18
5.1.2 音乐资源21
5.2 工程介绍21
6 项目实现24
6.1 菜单界面Menu24
6.2 英雄界面HWorld27
6.3 卡牌界面CWorld28
6.4 战斗界面FWorld31
6.5 结算界面38
7 项目测试40
7.1 测试的定义及其重要性41
7.1.1 测试的定义41
7.1.2 测试的重要性41
7.2 测试实例的研究与选择41
致谢42
参考文献42
基于cocos2dx引擎的手机卡牌游戏开发
计算机科学与技术专业学生 于雷
指导教师 徐焕良
Phonebased card game engine development cocos2dx
Student majoring in Computer Science and Technology Yu Lei
Tutor Xu Huanliang
Abstract: Hearthstone legend is a very easy to use card game, which features a bit like Texas Poker, the novice is very easy to learn, and master skills in another study space. Its game mode is 1 to 1, you need to touch the cards with a reasonable combination, then the best time to play, gradually cut the opponents health to zero. Describes the role of each card are controlled within a word, the very simple and easy to understand, even if you have absolutely no contact with such games, but also to immediately know that they can do what five minutes to get started, ten minutes a game! the Hearthstone legends in the current market conditions, the market has never extended to mobile terminals, and the curriculum is designed to do a background Hearthstone legend mobile games. The game is developed in a windows environment. Based on cocos2dx game engine, strong crossplatform for the future to prepare for transfer to a different platform.
Key words: cocos2dx Hearthstone legend card, ios,
1 研究背景
1.1 国内外研究现状
1.1.1 卡牌类游戏
随着智能手机的不断发展,手机已经成为人们生活中不可或缺的物品,传统的功能手机主要用于通讯,与当今的智能手机相比,智能手机更像是一台小型的移动电脑,丰富的功能可以满足用户各种不同的需求,而手机软件成为了承载不同功能的载体。
2008年3月6日,苹果对外发布了针对iPhone的应用开发包(SDK),供免费下载,以便第三方应用开发人员开发针对iPhone及Touch的应用软件。不到一周时间,3月12日,苹果宣布已获得超过100,000次的下载,三个月后,这一数字上升至250,000次。[1]苹果公司一直以来推出的产品在技术上都保持一定的封闭性,比如当年的Mac,此次推出SDK可以说是前所未有的开放之举。继SDK推出之后,同年7月11日,苹果APP Store正式上线。7月14日,App Store中可供下载的应用已达800个,下载量达到1千万次。[2]2009年1月16日,数字刷新为,逾1.5万个应用,超过5亿次下载。2011年1月6日,App Store扩展至mac平台。APPStore平台上大部分应用价格低于10美元,并且有约20%的应用是供免费下载的。用户购买应用所支付的费用由苹果与应用开发商3:7分成。
版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/jsj/jsjkxyjs/1949.html