手游发展养成系统

 2022-08-15 09:08

论文总字数:30859字

摘 要

游戏产业如今已然成为了众多产业中的朝阳产业,手机、平板电脑等成为游戏的新兴载体,正在开创着游戏产业的新时代。

本课题以一款手游为主要研究对象,基于Cocos2d-x游戏引擎,利用JavaScript语言,设计并实现了这款手游发展养成系统中的部分功能。这些功能包含新型组件的开发,动画系统、任务系统和邮件系统的设计与实现。本文在对这些功能实现中运用的一些技术并对它们进行了分析,包括事件监听与发射技术、WebSocket通信和本地数据存储LocalStorage等。运用这些技术实现一些通用功能,提供一些接口,提高了游戏开发的效率,减少了开发时间和成本,增强了游戏的复用性和拓展性。

关键词:手游;动画;任务;邮件;事件的监听与发射;WebSocket;数据存储;LocalStorage

The Development of Nurturance System

in Mobile Games based on JavaScript

Abstract

The game industry has now become the sunrise industry in a number of industries, mobile phones, tablet PCs and so become the game's emerging carrier, is to create a new era of the game industry.

This topic takes a Mobile Game as the main research object, based on Cocos2d-x game engine, using JavaScript language, designs and implements some functions of this Mobile Game’s development system. These features include the design and implementation of new component development, animation systems, task systems and mail systems. In this paper, some of the techniques used in the implementation of these functions are analyzed, including event monitoring and delivery technology, WebSocket communication and local data storage LocalStorage. The use of these technologies to achieve some common functions, to provide some interface to improve the efficiency of game development, reducing development time and cost, and enhance the reusability of the game and expandability.

KEY WORDS: Mobile Game, animation, task, mail, event monitoring and delivery, data storage, LocalStorage

目录

摘要 ………………………………………………………………………………………Ⅰ

关键词 ………………………………………………………………………………… Ⅱ

  1. 绪论 …………………………………………………………………………………1

1.1 课题背景与研究意义 ………………………………………………………………1

1.2 国内外现状分析 ……………………………………………………………………1

1.3 本课题的主要工作和研究内容 ……………………………………………………2

1.4 本文的组织结构 ……………………………………………………………………2

  1. 相关原理与技术 ……………………………………………………………………3

2.1 JavaScript语言 ……………………………………………………………………3

2.2 WebSocket与HTTP通信 …………………………………………………………3

2.3 本地数据存储LocalStorage …………………………………………………5

2.4 动画技术 ………………………………………………………………………5

2.4.1 动作系统实现动画 …………………………………………………………5

2.4.2 动画系统实现动画 …………………………………………………………6

2.5 事件发射与监听 ……………………………………………………………………7

  1. 系统设计与实现 ……………………………………………………………………9

3.1 弧形滑动组件实现 ………………………………………………………………9

3.2 奖励动画实现 ………………………………………………………………………11

3.2.1 单类物品奖励动画 ………………………………………………………11

3.2.2 多类物品奖励动画 ………………………………………………………12

3.3 日常任务模块的设计与实现 …………………………………………………14

3.3.1 主界面 ……………………………………………………………………14

3.3.2 宝箱奖励界面 ……………………………………………………………16

3.3.3 任务详情界面 ……………………………………………………………16

3.4 邮件系统 ………………………………………………………………………16

3.4.1 邮件的收发 ………………………………………………………………17

3.4.2 邮件的本地存储 …………………………………………………………18

3.4.3 邮件的分类显示 …………………………………………………………18

  1. 系统测试与分析 …………………………………………………………………20

4.1 弧形滑动组件功能测试 ………………………………………………………20

4.2 动画功能测试 …………………………………………………………………20

4.3 任务系统测试 …………………………………………………………………20

4.4 邮件系统测试 …………………………………………………………………21

  1. 总结与展望 ………………………………………………………………………22

参考文献 …………………………………………………………………………………23

致谢 ………………………………………………………………………………………24

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

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

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