美食大冒险电视移植项目

 2022-06-24 11:06

论文总字数:27653字

摘 要

本次课题首先从分析目标游戏《美食大冒险》开始,这是一款基于Cocos2d-X游戏引擎,使用JavaScript脚本语言开发的跑酷类游戏。通过研究HTML5游戏移植的解决方案,分析出其并不能够适用于本次目标游戏的移植,结合目标游戏的特性和此解决方案确立了解决方案的技术基础,然后设计出能够自动寻找下一个焦点并且能够正确响应和移动的焦点系统并具体实现。而后将焦点系统具体应用在游戏内的各个场景中,通过解决在普通场景中焦点移动和响应问题,含有scrollview滚动视窗的场景中焦点移动和滚动视窗内容滚动问题,改善焦点遮挡问题,以及在场景切换焦点返回错误等问题,不断完善焦点系统。游戏移植最后阶段是要在不同平台上发布,所以需要接入第三方平台支付sdk。本次课题通过研究支付流程和第三方平台的sdk接口实现客户端支付系统中Java阶段的设计。最后通过对焦点移动,响应,scrollview页面,切换页面焦点返回位置和支付系统的测试,确定本次课题目标游戏移植成功,并且已于2017年9月在视博云,重庆有线等平台上线。

关键词:Cocos2d-X,JavaScript,焦点,智能盒子,scrollview

Abstract

The topic begins with an analysis of the target game “Foodrun”, a game based on the Cocos2d-X game engine developed using JavaScript scripting language. Through studying the HTML5 game migration solution, it is analyzed that it is not applicable to the transplantation of the target game. The technical foundation of the solution is established by combining the characteristics of the target game and this solution, and then the design can automatically find the next focus. And can correctly respond to and move the focus system and achieve it. Then the focus system is specifically applied to various scenes in the game, to solve focus movement and response problems in ordinary scenes, focus scrolling and scrolling window content scrolling problems in scenes containing the scrollview scroll window, improving the focus occlusion problem, and in the scene Switch focus back to errors and other issues, and constantly improve the focus system. The final stage of game migration is to publish on different platforms, so you need to access a third-party platform to pay for sdk. This project implements the design of the Java stage in the client payment system by studying the payment process and the sdk interface of the third-party platform. Finally, through the focus movement, response, scrollview page, switching the focus of the page return position and payment system testing, to determine the success of this project target transplant, and in September 2017 in Bo cloud, Chongqing cable and other platforms online.

KEY WORDS:Cocos2d-X,JavaScript,focus,smart TV box

目录

摘要 - 2 -

第一章 绪论 - 5 -

1.1 课题背景与研究意义 - 5 -

1.2 国内现状分析 - 5 -

1.3 本课题主要工作和研究内容 - 6 -

1.4论文的组织结构 - 6 -

第二章 相关技术与原理 - 7 -

2.1 Cocos2d-X引擎技术 - 7 -

2.11 Cocos2d-X基本概念 - 7 -

2.12 控件介绍 - 9 -

2.13 事件分发机制 - 9 -

2.14 scrollview滚动视图组件 - 10 -

2.15 UI系统 - 10 -

2.16 Cocos2d-X的缺陷 - 11 -

2.2 焦点的概念 - 12 -

第三章 焦点系统的设计与实现 - 13 -

3.1 焦点系统的设计 - 13 -

3.11 H5游戏移植解决方案的研究 - 13 -

3.12 新的焦点系统 - 14 -

3.2 焦点系统的具体实现方法 - 15 -

3.21 准备工作 - 15 -

3.22 自动寻找焦点 - 16 -

3.3 焦点图片的添加和动态化 - 16 -

3.4 焦点系统在场景中的使用 - 17 -

3.41 焦点系统主场景中的设置 - 17 -

3.42 焦点含有scrollview的场景中的处理 - 18 -

3.43 焦点在场景切换时的处理 - 20 -

第四章 游戏内支付sdk的实现 - 21 -

4.1 支付流程 - 21 -

4.2 支付系统设计与实现 - 21 -

4.3 编译Android工程 - 23 -

第五章 系统测试与分析 - 25 -

5.1 焦点系统测试 - 25 -

5.2 支付系统测试 - 25 -

5.3 测试游戏流畅性 - 26 -

第六章 总结与展望 - 27 -

致 谢 - 28 -

参考文献 - 29 -

第一章 绪论

1.1 课题背景与研究意义

随着网络的普及,智能电视和智能电视盒子已经是家庭娱乐必不可少的的用品,对于买新机的人来说,智能电视机是很多人的选择,但对于还在使用传统电视机的人来说,智能电视盒子是更优的选择。智能电视盒子以其价格便宜,功能强大吸引着更多的消费者,只需要消费两百元左右就可以将创痛电视机转换成“智能电视”。据奥维云网(AVC)全渠道推总数据显示,中国OTT盒子的销量是1074万台,但是这个销量已经同比去年下降24%,截至2017年底,智能电视的渗透率已经超过90%。智能电视其中一大亮点是游戏,用遥控器在电视上玩游戏,让人们能够轻松简单的获得游戏带来的乐趣。但是,对于针对盒子开发游戏根本不能满足巨大的市场需求,而将Android游戏移植到智能电视上,对于开发者来说,不需要花费大量的人力物力财力来开发新的游戏,只需要设计一套焦点系统花费较少的人力就可以实现游戏的快速同一类游戏的移植。游戏的快速移植,能够满足巨大的市场需求的同时,还能节省大量的资源。通过本次课题研究,你会发现游戏移植技术不仅意义重大而且很容易掌握。

剩余内容已隐藏,请支付后下载全文,论文总字数:27653字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;