-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (43 loc) · 1.42 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
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Punchbag Game</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
<link href="https://fonts.googleapis.com/css?family=Sedgwick+Ave+Display" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet" />
</head>
<body>
<h1>Punch the Bag!!!</h1>
<div id="punchbag-app">
<audio id="punch-0">
<source src="media/punch-0.wav" type="audio/ogg">
</audio>
<audio id="punch-1">
<source src="media/punch-1.wav" type="audio/ogg">
</audio>
<audio id="punch-2">
<source src="media/punch-2.wav" type="audio/ogg">
</audio>
<audio id="restart">
<source src="media/restart.wav" type="audio/ogg">
</audio>
<div v-bind:class="{ 'bag-image': !isDead, 'bag-burst-image': isDead }"></div>
<div id="health-bar">
<div class="current-health" v-bind:style="{width: bagHealth + '%'}"></div>
</div>
<div id="game-controls">
<button v-on:click="punch" v-show=!isDead class="raise">Punch</button>
<button v-on:click="resetGame" class="raise restart">Restart!</button>
</div>
<div id="expression">
<p>{{exclamation}}</p>
</div>
</div>
<a href="https://github.com/shivavamsi/punch-bag-game">
<div class="foot"><img src="images/logo.png" width="50px" height="50px"></div>
</a>
<script src="scripts/app.js">
</script>
</body>
</html>