JS火箭发射炮打怪游戏特效代码下载



如需定制开发(网站开发、二次开发)在线咨询,请点击>> QQ:753511799

15 56 19



特效描述:火箭发射炮 打怪游戏。纯JS编写的页面小游戏-火箭打怪,百战天虫玩法,左右键调整发射速度,上下键调整发射高度,B键切换弹道,Y键购买导弹,回车发射,击中怪物会产生积分,并且怪物掉血

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="./bs4.css">
<link rel="stylesheet" type="text/css" href="./bs4.css">

2. 引入JS

<script type="text/javascript" src="./bs4.js"></script>
<script type="text/javascript" src="./bs4.js"></script>

3. HTML代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head >
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title></title>
	</head>
	<body class="body" onload = "ondraw();">
		<span id = "score" class = "score">积分:0</span>
		<span id = "missle" class = "missle">10</span>
		<p id = "enemyHPbg"></p>
		<p id = "enemyHP"></p>
		<div id = "enemy" ></div>
		<div id = "carrier" ></div>
		<div id = "bullet" ></div>
		<div id = "loader" class = "loader0"></div>
		<div id = "car" class = "car0"></div>
		<div id = "boom" ></div>
		<span id = "speed_h" class = "set_speed_h">10</span>
		<span id = "speed_v" class = "set_speed_v">10</span>
		<p id = "bullettrack" class = "bullettrack"></p>
		<p id = "stage" class = "stage"></p>
		<p id = "losebuy" class = "losebuy"></p>
		<p id = "launchbtn" class = "launchbtnready"></p>
	</body>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 飞机游戏 拼图游戏 贪吃蛇 连连看 见缝插针游戏 其他游戏 h5小游戏

×
×
51前端

注册

×
绑定手机

请绑定手机号,在继续操作

×
单次下载支付

应付金额:279

支付完成后,回到下载页面,在进行下载

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到