基于egret引擎的H5游戏公会战系统的设计与实现

 2022-06-20 11:06

论文总字数:24313字

摘 要

游戏开发一直是软件开发方面的热门话题。和其他类型的软件相比,游戏和用户之间的交互较多,种类多样化,以具有特色的ui交互界面和针对性的玩法获得用户的青睐。近年来,html语言技术发展迅猛,随之而来的是html5游戏产业的发展。尤其是在移动设备上的游戏开发方面,html5网页游戏有着很多原生应用不具备的优势,例如高效快速的开发过程、优秀的可移植性以及强大的社交功能等。可以预见的是html5移动端游戏的热度将会在一段时间内保持上升势头,并带动网页游戏整体技术的前进。

本文的主要内容包括介绍如何利用egret游戏开发引擎,设计并开发一款html5游戏的、经测试可上线的公会战模块;一个完整的实现过程将会包括需求分析、产品设计、代码实现、测试等几大阶段,并且需要考虑到之后的版本升级。需求分析主要通过向游戏玩家分发问卷调查的方式收集、筛选。公会战的玩法设计上需要对以往一般公会战的玩法进行考虑,并在其之上创新。代码实现和测试上则要严格遵循相关软件开发标准和测试标准。通过设计与实现的过程,深入了解h5移动端网页游戏的开发流程,学习和应用相关专业知识,并且提出关于本项目和网页游戏开发技术的总结。

关键词:html5,网页游戏,软件开发

Abstract

Game development has always been a hot topic in software development. Compared with other types of software programs, there are more interactions between games and users, and these interactions are differ from each other. So games always gain users' favor with distinctive UI interactive interface and targeted gameplay. In recent years, html technology has been developed rapidly, followed by the development of the html5 game industry. Especially for game development on mobile phones, an html5 web game may have many advantages that a native app does not have, such as rapid developing-progress, extraordinary portability and great social functions. It is foreseeable that the popularity of html5 mobile games will continue to rise in a period of time, and will drive the overall technology of web games too.

The main contents of this paper include the introduction of how to use the egret game development engine to design and develop an html5 game that has been tested and available online. A complete software developing process will include several phases, such as requirements analysis, product design, code implementation and testing. You need to consider the later version upgrades, too. Requirements analysis is mainly collected and filtered through the distribution of questionnaires to game players. The design of the union battle needs to consider the former ones and developed on them. The code implementation and testing should strictly follow the relevant software development standards and test standards. And through the process of design and implementation, this paper will introduce more about html5 mobile web game development. This paper will also learn some related professional knowledge. Finally, this article will present own opinions on this project and web application technology.

KEY WORDS: HTML5, web games, software development

基于egret引擎的H5游戏公会战系

统的设计与实现

摘要 I

Abstract II

第一章 引言 3

1.1 国内市场背景 3

1.2 技术背景 3

1.3 项目主要内容 4

第二章 需求分析 5

2.1 设计目标 5

2.1.1 重要性 5

2.1.2 目标 5

2.2 可行性分析 5

2.3 详细需求分析 5

2.4 开发软硬件条件分析 6

第三章 产品设计 7

3.1 公会模块简介 7

3.2 流程与数据表设计 8

3.3 玩法规则设计 10

第四章 代码实现 11

4.1 模块框架实现 11

4.1.1 皮肤 11

4.1.2 Model模型层 11

4.1.3 View视图层 11

4.1.4 Controller控制层 11

4.1.5 模块工作模式简介 11

4.2 公会战主界面实现 12

4.3 挑战列表界面实现 18

4.4 阵容选择弹窗实现 20

4.5 日志与排行榜弹窗实现 21

4.6 其他需求实现 23

第五章 测试与总结 24

5.1 测试用例 24

5.1.1 发起匹配功能 24

5.1.2 免战功能 24

5.1.3 阵容调整功能 24

5.1.4 挑战敌方成员功能 25

5.1.5 日结算功能 25

5.2 总结 26

致谢 27

参考文献 28

引言

1.1 国内市场背景

网页游戏起源于上世纪90年代,中间经过了包括从火热到低迷,再到平稳增长的一段时间的发展,已经诞生了一批优秀作品并拥有诸多稳定的拥护者。随着网页编程技术的发展,网页游戏能够展现出不亚于原生应用的效果[1],却并不需要原生应用所要求的较高的软硬件条件。对于移动端web游戏而言,用户甚至不需要下载客户端即可参与游戏,大大降低了手机的硬件门槛。在可期的未来一段时间,原生游戏市场被几大游戏公司占据的情况下,手机网页游戏无疑将成为手机游戏公司的一大突破口。

1.2 技术背景

近几年来,HTML技术飞速发展并经过了多次更新换代。HTML语言,中文全称超文本标记语言,自从1993年第一版发布起就成为了web编程的基础,并于2014年发展到第5代。目前HTML5支持的浏览器包括市面上大多主流浏览器,包括IE9以上和Chrome25以上。Html5相对于之前的版本拥有诸多优点,例如更好的设备兼容和更强的图形渲染功能等,故而已经成为新的网页程序编程标准[2]。而在移动端开发H5游戏可以基于javascript引擎实现,目前存在的引擎种类多,各有特色,在实现不同的功能方面各有长处。本文中所涉及的开发过程均使用egret引擎,因其使用范围广泛,开发历史较长,版本也较为稳定。为了方便前端开发工作,egret自定义了一系列的api,包括各种显示控件的api、事件传递机制以及各种数据结构等,这些省去了我们在开发时的重复编程,并且也被以往的项目反复检验过,比较稳定不易出问题。

(1)语言技术

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

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

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