基于HTML5的街霸游戏的开发与设计

 2023-04-16 08:04

论文总字数:21085字

摘 要

本系统主要是实现街霸游戏的基本对战功能,要有一些常用的必杀技能,并且能够实现人机对战和人人对战功能。当玩家没有注册过时,可以进行注册;只有当玩家输入正确的用户名和密码登陆进入游戏后,本系统可以记录下玩家在本系统中的胜利次数和失败次数,可以根据玩家的要求查询此玩家的对战成绩,并且可以根据玩家的要求选择人物对战的方式。

人物英雄的对战分为两种:人机对战和人人对战。当玩家选择人机对战时,系统会自动帮玩家设定英雄1(即对战界面左侧的英雄)为玩家控制的英雄,玩家可以根据键盘上的按键对英雄进行控制;当玩家选择人人对战时,系统会自动设定英雄1(即对战界面左侧的英雄)是玩家1所控制,英雄2(即对战界面右侧的英雄)是玩家2所控制,两位玩家可以通过键盘上不同的键对两个英雄进行控制。

关键字:数据库;SQL语言;MyEclipse;街霸游戏

Develop and design of the street fighter game

based on HTML5

Abstract

This system is mainly to achieve the basic functions of the war fighter games,There must be some common nirvana,and can realize man-machine war battle and all. When the game player is not registered out of date, you can register; only when the game player has to enter the correct username and password login after entering the game, the system can record the game player in the system of victory and the number of times of failure, according to the requirements of the game player can query on a game player performance, and can choose the way of war according to the characters of the game player requirements.

The hero of war is divided into two types: the war machine and all battle. When the game player selection of man-machine war, the system will automatically help game player set hero 1 (i.e. on the left side of the screen war hero) for the hero of the game player can control the game player, according to the keys on the keyboard to control the hero; when the game player selection for all the wartime, the system will automatically set the hero 1 (i.e. against the left side of the screen hero) is the 1 game player control, hero 2 (i.e. the battle interface on the right side of the hero) is controlled by two bit 2 game player, game player can through the keyboard on different keys to control the two heroes.

Key words: database; SQL ; MyEclipse;Street Fighter Game

目 录

摘 要 II

Abstract III

第 一 章 前 言 1

1.1 背景介绍 1

1.2 系统整体设计 1

第 二 章 系统的总体设计 3

2.1 模块 3

2.1.1 模块划分 3

2.1.2 功能概述 3

2.2 实现技术 4

2.2.1 HTML5技术 4

2.2.2 Servlet技术 5

2.2.3 JS技术 7

2.2.4 数据库mysql 5.5 8

2.2.5 开发工具MyEclipse8.5 9

第 三 章 系统分析 11

3.1 可行性分析 11

3.1.1 技术可行性 11

3.2 流程分析 11

3.2.1 玩家的登陆功能 11

第 四 章 算法描述 12

4.1 数据结构 12

4.1.1 表结构设计 12

4.1.2 程序结构图 13

第 五 章 系统实现 15

5.1 前台jsp 15

5.1.1 设计与实现思路 15

5.1.2实现部分 15

5.1.3 实现代码 18

5.2 servlet技术 21

5.2.1 设计思路 21

5.2.2 实现部分 21

5.2.3 代码部分 22

5.3 数据库MySQL 25

5.3.1 设计及实现思路 25

5.3.2 代码实现 25

5.4 工具MyEclipse 8.5 25

5.4.1 工具的选择 25

5.4.2 界面截图 25

第 六 章 测试及性能分析 27

6.1 测试 27

6.1.1 测试用例 27

6.1.2 测试的实际结果 27

6.2 性能分析 29

第 七 章 结束语 30

致 谢 31

参考文献 32

第 一 章 前 言

1.1 背景介绍

这个时代,是属于互联网的时代。在互联网的强力冲击下,所有的公司企业都岌岌可危。在今天,在计算机应用日益普及的当下、在这个计算机应用逐渐成为人类生活的一部分的现今社会,传统游戏也逐渐被网络游戏所取代,曾经的街机已经逐渐被淘汰出市场,所以一个基于HTML5的网页街霸游戏应运而生。

日本公司所推出的《街头霸王》游戏,称得上是格斗游戏的始祖。在此之后又陆续推出了一系列的不同版本的《街头霸王》游戏,而且这些游戏有些又被改编成了动画或者是电影。除了这些之外,还推出了一系列与《街头霸王》相关的周边产品。

在街机盛行的时代,有两大巅峰之作,分别是《街头霸王》和《拳皇》。从当年的《功夫》之后,日本的街机厅出现了一种二人的对战游戏,这个游戏与《功夫》有着质的区别。这就是当年的《街头霸王》(Street Fighter)。在这个游戏之中有着这样的设定:两位游戏中的主角隆与肯全都是非常擅长空手道,他们一起参加了当年的世界武术大赛。在大赛之中,经过和九大高手的对决之后。隆在决赛中凭仗升龙拳这一空手道的最强奥义,将搏斗帝王泰拳王沙盖特击倒在地,并且还在他的胸口前面留下了一道长长的耻辱的伤疤。由此,隆重新登上了挑战更强者的一条充满曲折的道路。之后的很多的格斗游戏的根本概念都是在它的基础上所确立起来的,比方一些必杀技,轻重拳,防御,膂力槽和时间限制等。特别是如果有人在胜利之后,会产生一种难以名状的愉悦感。如果不存在初代《街霸》的成功做基础,就没有后来所谓《街霸》整个系列的大红大紫。只是很可惜,现在的游戏已经呈现网络化趋势,能玩到的街机游戏也越来越少了。

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

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

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