基于Egret引擎的HTML5网页游戏的服装分解重构模块的设计与实现

 2022-09-04 08:09

论文总字数:25315字

摘 要

在一个游戏中,游戏模块的完善性是非常重要的,所以在本项目中的H5换装游戏中,游戏服装部分的逻辑处理显得尤为重要,

本项目的主要内容是H5换装游戏中服装分解重构模块,旨在完善游戏的游戏逻辑,丰富游戏内容。本项目的客户端通过使用Egret开发工具结合TypeScript语言编写来完成的,并使用php语言完成服务端业务逻辑的实现。以MySQL作为后台的web数据库管理系统。整个项目采用的是MVC模式,客户端采用PureMVC切合项目开发,服务端采用thinkPHP既精简服务端代码和逻辑也符合H5游戏开发的优势。

该模块主要包括的功能有服装分解、服装重构、神秘宝箱开启等,在了解项目背景和意义后,对功能需求进行分析,完成相关数据库的设计,对客户端和服务端的详细设计分别进行阐释,最后是项目内容的具体编码设计,和项目进行中和完成后的测试介绍和总结,完成了整个项目的开发和发布。

关键词:HTML5游戏;TypeScript;php;Egret;服装分解重构模块

Design and Implementation of Garment Decomposition and Reconstruction Module of HTML5 Web Game Based on Egret Engine

71113210 Liu Zimiao

Advisor Tang Hui

Su Yi

ABSTRACT

Student ID: 71113210 Name: Zimiao Liu Instructor: Hui Tang

In a game, the perfect game module is very important, so in this project H5 dressup game, the dressup part of the game processing is particularly important.

The main content of this project is H5 dressing game clothing decomposition and reconstruction module, designed to improve the game game logic, rich game content.Through the use of Egret development tools and TypeScript language to complete the preparation of the client, and use php language to complete the server business logic implementation.To MySQL as the background of the web database management system, the entire project is used MVC mode, the client uses PureMVC project development, the server using thinkPHP both streamlined server-side code and logic also meet the advantages of H5 game development.

The module mainly includes the functions of clothing decomposition, clothing reconstruction, mysterious chest open, etc., in understanding the background and significance of the project, the functional requirements of the analysis, to complete the relevant database design, the client and the server's detailed design were interpreted , And finally the specific content of the project design, and the project after the completion of the test description and summary of the completion of the entire project development and release.

KEY WORDS: HTML5 game; TypeScript; php; Egret; Clothing decomposition and reconstruction module

目 录

摘要 一

ABSTRACT 二

第一章 绪论 1

1.1 项目背景 1

1.2 项目意义 1

1.2.1 H5的技术发展现状与趋势 1

1.2.2 H5游戏应用和发展面临的问题 1

1.3 主要项目内容 2

1.4 开发工具简介 3

1.5 本文的组织结构 3

第二章 概要设计 4

2.1 需求分析 4

2.1.1 项目功能需求分析 4

2.1.1项目安全性需求分析 5

2.2数据结构设计 5

第三章 客户端详细设计 7

3.1 客户端使用的框架 7

3.2 模块功能界面设计 8

3.3 皮肤显示与逻辑的连接 10

3.4 客户端网络连接 10

第四章 服务端详细设计 11

4.1 服务端总体框架 11

4.1.1 ThinkPHP的基础概念 11

4.1.2 本项目用到的ThinkPHP 11

4.2 服务端模块设计 11

第五章 编码设计 13

5.1 客户端编码设计 13

5.1.1 TypeScript语言 13

5.1.2 模块代码设计 13

5.1.3 客户端资源配置 15

5.2 服务端代码设计 15

5.2.1 PHP语言 15

5.2.2 服务端业务逻辑的实现 15

5.2.3 服务端数据库访问的操作 16

第六章 测试 17

6.1 前端界面测试 17

6.2 前端代码逻辑的测试 17

6.3 后端代码测试 17

6.4 测试结果及分析 17

结论 19

致谢 20

参考文献(References) 21

第一章 绪论

1.1 项目背景

在如今的互联网时代,H5游戏有极大的传播和发展优势,H5游戏相当于是移动端的网页游戏,用户不需要下载软件也不需要安装就可以体验游戏,而且H5游戏可以轻松的实现游戏的三端合一,即在PC端、网页端、移动端都可以统一用户的游戏数据,使得玩家在任何设备上都可以延续游戏体验。

而H5换装游戏是时下H5游戏发展中的一种较轻型游戏,能避免H5游戏大型游戏的体验不如端游和手游的问题,可以通过简单明了的操作来达到游戏效果,游戏通过前端操作,发送网络请求,在后台对用户的操作就行处理,并且保存到数据库中。

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

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

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