forked from coderschool/canvas_game_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (112 loc) · 5.17 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="css/main.css">
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
<title>The Kawaii Sushi Cat 🐱</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-lg-4 col-12">
<div>
<h1 class="text-center text-danger font-weight-bold py-3">The Kawaii Sushi Cat</h1>
<p>
My stupidly lazy cat is starving. But she only eats sushi (I know... 😒). Click the toggle button below
for instruction <span class="font-weight-bold">(close it before you play for best gaming experience)</span>!
</p>
</div>
<!--collapse instruction starts-->
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<button class="btn btn-primary btn-block" data-toggle="collapse" href="#collapse1">
<div style="font-size: 20px; font-weight: bold;">HOW TO PLAY</div>
<div>(Hint for how to win the game included!!!)</div>
</button>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse">
<ol class="list-group">
<li class="list-group-item">
Feed my cat 🍣. For every 🍣 she gets, you get +2 seconds 🕐 as bonus.
</li>
<li class="list-group-item">
Don't feed her anything other than 🍣. Although they might look appetizing, she will get a diarrhea
💩.
</li>
<li class="list-group-item">
Avoid the cage! People are trying to catch and eat my cat! 🙀
</li>
<li class="list-group-item">
If my cat is caught or you are out of time or she isn't fed sushi, she will die 😿 <b>(Game will be
restarted).</b>
</li>
<li class="list-group-item">
You will move to the next round for every 3 🍣 she gets. The game will get harder <b>(cage movement
speed
*=
round)! 🙀</b>
</li>
<li class="list-group-item">
<b>Tips on how to win:</b><span class="text-white"> But I don't think you can. Hehe.</span>
<div>Finish round 10.</div>
</li>
</ol>
</div>
</div>
</div>
<!--collapse instruction ends-->
<div class="py-2 text-center font-weight-bold" style="font-size: 20px;">⚡ High Score: <span
id="high-score"></span>
</div>
<div class="py-2 text-center font-weight-bold" style="font-size: 20px;">💪 High Round: <span
id="high-round"></span>
</div>
<div class="py-2 text-center font-weight-bold" style="font-size: 20px;">⌛ Remaining Time: <span
id="remaining-time"></span>
</div>
<div class="py-2 text-center font-weight-bold" style="font-size: 20px;">💯 Score: <span id="total-score"></span>
</div>
<div class="py-2 text-center font-weight-bold" style="font-size: 20px;">👍 Round: <span id="round"></span>
</div>
<!--audio-->
<div class="py-2 text-center">
<audio id="audio" src="audio/background-music-cut.mp3">
</audio>
<button id="audio-button" class="btn btn-warning text-white" onclick="togglePlay()">OFF 🎹</a>
</div>
<!--reset-->
<div class="py-2 text-center">
<button onclick="reset()" class="btn px-3 btn-danger">
Reset the whole thing (Remove high score)!
</button>
</div>
</div>
<!--canvas-->
<div class="col-lg-8 col-12 d-flex align-self-center justify-content-center">
<button onclick="startGame()" class="start-game btn px-3 btn-success">
START GAME
</button>
<canvas id="canvas" style="display: none;"></canvas>
</div>
</div>
</div>
<!--bootstrap script-->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<!--main-->
<script src="game.js"></script>
</body>
</html>