forked from targetkiller/climbUp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (33 loc) · 1.59 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no">
<meta name="author" content="tqtan">
<meta name="description" content="html5游戏爬楼梯,刺激好玩,分享给朋友们吧~">
<meta name="keywords" content="html,爬楼梯,重力,声音,游戏,game,html5游戏">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>爬楼梯</title>
<link rel="stylesheet" href="style.css">
</head>
<body style="background-color: #000;">
<canvas id="game" width="500px" height="500px"></canvas>
<div id="gameover" style="display:none">game over
<p id="showScore">恭喜你,你爬到了<span id="finalScore">0</span>楼!</p>
<p id="showInfo">你登上了<span id="funnyInfo">平地</span></p>
<a href="javascript:void(0)" id="restart">restart</a>
</div>
<div id="gametips">
<p>点击屏幕(摆动手机)躲过一切障碍!<br />背景颜色改变?试试<span class="yellow">相反</span>操作?<br /><span class="tips">(若感觉卡,请换个浏览器试试)</span></p>
<a href="javascript:void(0)" id="shake">用摆的</a>
<a href="javascript:void(0)" id="point">用点的</a>
</div>
<!-- <div id="speed-wrap">当前速度: <span id="speed">0</span></div> -->
<div id="score-wrap">你在<span id="score">0</span>楼</div>
<script src="game.js"></script>
<audio id='coin-sound' >
<source src='jump.mp3' type='audio/mp3'>
<source src='jump.ogg' type='audio/ogg'>
</audio>
</body>
</html>