-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (44 loc) · 1.95 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
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Flappy Mario</title>
<meta name="description" content="Flappy bird clone">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/shortcut-icon.png">
<link rel="apple-touch-icon" href="img/shortcut-icon.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Alegreya' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<canvas id="main-canvas"></canvas>
<div id="overlay">
<h1 id="pipeCount">0</h1>
<div id="scoreboard">
<h1 id="startEndHeading">Flappy Mario</h1>
<h1 id="pauseUnpauseHeading" style="display:none;">Paused <i class="fa fa-pause"></i></h1>
<div class="gameScores">
<h2> Previous Game Score:</h2>
<h2 id="lastGameScore">0</h2>
</div>
<div class="gameScores">
<h2>High Score:</h2>
<h2 id="highScore"></h2>
</div>
<button id="startBtn">Click to Start</button>
<button id="pauseBtn" style="display:none;">Resume <i class="fa fa-play"></i></button>
</div>
<h3 id="keycodes">Press 'Space' or 'Click' to flap
<br>Press 'P' to PAUSE a game</h3>
</div>
<img id="mario" src="img/mario.png" style="display:none;">
<img id="pipe" src="img/pipe.png" style="display:none;">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://cdn.jsdelivr.net/velocity/1.2.2/velocity.min.js"></script>`
<script src="http://cdn.jsdelivr.net/velocity/1.2.2/velocity.ui.min.js">
</script>
<script src="build/js/main.js"></script>
</body>
</html>