基于egret引擎H5游戏活动系统的设计与实现

 2022-06-20 11:06

论文总字数:41829字

摘 要

游戏行业是随着时代发展而逐渐流行起来的新兴行业,并随着互联网的普及日益成为人们日常生活中不可分割的重要组成部分,同时游戏开发也一直是软件开发的热门部分[1]。在当今游戏市场上,以英雄联盟、绝地求生、堡垒之夜等为主要代表的大型网游占据了大部分市场份额,但是由于人们时间的碎片化倾向越来越严重,更多的手游与页游开始走入人们的视野,并在慢慢占据市场的主导地位,其中,以html5为主要开发语言的html5游戏产业也在飞速的发展。游戏软件作为一类比较特殊的软件类型,其一直将软件与用户的交互作为开发的重中之重,而随着html5技术的发展,html5游戏产业具有独特的优势,且不论其对游戏开发者十分友好,其开发过程简便高效、开发成本低廉,它具有超快的用户交互、非常好的移植性能以及较为强大的社交功能,这些优势能够使其在接下来的发展中保持着比较好的热度并在游戏行业中占据着一席之地。

本文的主要内容包括如何使用Egret游戏开发引擎,设计开发一款月流水过百万的HTML5游戏的活动系统模块,主要是师徒系统模块,其整个开发流程包括前期的需求分析,模块设计,代码实现,测试几个标准流程,并需要考虑这些活动系统的循环发布问题以及之后的版本升级问题。并通过本师徒系统模块的开发,进一步了解HTML5游戏的制作流程、开发规范等相关开发问题与pureMVC框架、Egret游戏引擎、Typescript语言等技术性问题。并在结尾处给出自己的心得体会与见解。

关键词:游戏开发,HTML5网页游戏,Egret游戏引擎,pureMVC框架

Abstract

The game industry is an emerging industry that has become increasingly popular with the development of the times. With the popularity of the Internet, it has become an integral part of people's daily lives. At the same time, game development has always been a hot part of software development. In today’s game market, large-scale online games, represented by League of Legends, Jedi Survival, Fortress Night, etc., account for most of the market share, but due to the fragmentation of people’s time, the number of mobile games and pages increases. The tour began to enter the people's field of vision, and slowly occupies the dominant position of the market. Among them, the html5 game industry with html5 as the main development language is also rapidly developing. As a relatively special type of software, game software has always regarded the interaction between software and users as the top priority in development. With the development of html5 technology, the html5 game industry has unique advantages, regardless of whether it is for game developers. It is very friendly, its development process is simple and efficient, and its development cost is low. It has ultra-fast user interaction, very good portability, and strong social functions. These advantages can keep it warm in the next development. And occupy a place in the game industry.

The main contents of this article include how to use the Egret game development engine to design and develop an active system module for over one million html5 games on the moon, mainly the master-apprentice system module. The entire development process includes the previous requirements analysis, module design, and code. Implement, test a few standard processes, and need to consider the issue of recurring issues for these active systems and later version upgrades. Through the development of this apprenticeship system module, we will further understand the HTML5 game production process, development specifications and other related development issues and pureMVC framework, Egret game engine, Typescript language and other technical issues. And at the end give my own experience and insights.

Keywords: Game development, HTML5 web games, Egret game engine, pure MVC framework

基于Egret引擎H5游戏活动系统的设计与实现

摘要 I

Abstract II

第一章 引言 1

1.1 研究背景 1

1.2 市场背景 1

1.3 本文结构概述 1

第二章 相关技术分析 2

2.1 HTML技术 2

2.2 Typescript语言 2

2.3 pureMVC框架 2

2.4 Egret游戏引擎 2

第三章 师徒系统模块的需求分析 3

3.1 需求目标 4

3.1.1 必要性 4

3.1.2 目标 4

3.2 可行性分析 4

3.3 详细需求分析 5

3.4 开发软硬件条件分析 5

3.4.1 硬件条件分析 5

3.4.2 软件条件分析 5

第四章 师徒系统模块的设计分析 6

4.1 师徒系统模块简介 6

4.2 流程与数据表设计 7

4.3 玩法规则设计 8

4.3.1 程序设计逻辑规则 8

4.3.2 玩法规则 9

第五章 师徒系统模块的代码实现 10

5.1 模块框架实现 10

5.1.1 Model模型层 10

5.1.2 View视图层 10

5.1.3 Controller控制层 10

5.1.4 模块工作方式 10

5.2 师徒主界面的实现 11

4.2.1 View类 12

4.2.2 Mediator类 14

4.2.3 Proxy类 17

4.3 师徒申请界面的实现 18

5.3.1 View类 19

5.3.2 Mediator类 19

5.3.3 Proxy类 21

5.4 师徒列表render的实现 21

5.5 师徒信息界面的实现 21

5.5.1 View类 22

5.5.2 Mediator类 23

5.5.3 Proxy类 23

5.6 师徒任务弹窗的实现 23

5.7 师徒任务render的实现 24

第六章 师徒系统模块的测试与总结 25

6.1 用例测试 25

6.1.1 进入国子监测试 25

6.1.2 师傅布置任务功能测试 26

6.1.3 师徒传授经验功能测试 26

6.1.4 师徒掠夺调戏功能禁用测试 26

6.2 测试总表 28

第七章 总结与展望 25

致谢 30

参考文献 31

引言

1.1 研究背景

本篇论文讲述的是在企业实习期间完成的企业毕设,毕设的主要内容是在Egret游戏开发引擎上实现一个网页游戏可操作可发布的完整的师徒系统模块,本项目设计的网页游戏基础是公司正在QQ空间、4399游戏等多个平台上线的网页游戏《全民养成之女皇陛下》(由于这款游戏在公司中是由Gong3团队开发维护的,所以我们又称之为Gong3,本论文接下来都以Gong3表示本游戏。)。

Gong3是基于Egret游戏引擎开发上线的一款H5游戏,玩法上以养成、剧情和战斗为主,游戏背景为中国古代皇宫。为了给老用户更好的游戏体验和新鲜感以及吸引更多的新用户,Gong3设计团队准备为Gong3这款游戏添加新的娱乐元素----师徒系统。本系统模块的添加主要是为了给玩家以更多的日常选择,给玩家之间增加更多的互动元素。设计本游戏的师徒系统模块,不仅要简介其他游戏的相关系统,还要考虑到本模块的可行性、玩家的心理需求和预期、和本游戏的契合性以及满足玩家正常的逻辑思维,再则也要考虑关于以后游戏的可扩展性等问题。以上是设计需要关注的问题,在编程上则要严格遵守软件开发规范和公司项目组内部指定的代码规范,保证游戏代码的规范性与可读性。

1.2市场背景

网页游戏又称为web游戏,无端网游,简称页游。它是基于各种web浏览器的多人网络互动游戏,不需要下载客户端,也不需要考虑配置的问题,关闭或者切换特别方便,对于上班族十分友好。网易游戏起源于九十年代的虚拟社区,在哪个网络泡沫经济经济高速扩张的年代,虚拟社区十分受大众欢迎,之后由于技术原因,虚拟社区遭到重创,网页游戏前景一度十分黑暗,但随着网页编程技术的发展,网页游戏逐渐被各大厂商重视,渐有东山再起之势[2]。

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

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

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