-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (111 loc) · 5.88 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
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="main.css">
<title>Scream Plane</title>
</head>
<body>
<div id="main" class="day not-started">
<canvas class="background-canvas"></canvas>
<canvas id="canvas" style="position: absolute;"></canvas>
<!-- <audio src="assets/sounds/start.mp3" autoplay loop></audio> -->
<div class="banner">
<div class="banner-plane"></div>
<div class="banner-text">
<div class="banner-text-upper">
<div class="banner-text-title banner-main-title">Scream Plane</div>
</div>
<div class="banner-text-lower">
<!-- <div class="banner-hider"></div> -->
<div class="banner-allow-mic">
<div class="banner-text-subtitle">Please grant access to microphone to play!</div>
<div class="banner-btn-sizer">
<!-- <div class="banner-button btn-play">Play!</div> -->
<div class="banner-button btn-grant">Grant <img src="assets/images/microphone.svg"></div>
<div class="banner-credit"><span>By <a href="https://github.com/PyBagheri">@PyBagheri</a> and <a href="https://github.com/PyAlaie">@PyAlaie</a></span><span><a href="https://github.com/ScreamPlane/screamplane.github.io">Github Repo</a></span></div>
</div>
</div>
<div class="banner-config-mic hidden">
<div class="banner-text-subtitle">Great! Now while keeping your microphone in silence, click button bellow and wait for 10 seconds ...</div>
<div class="banner-btn-sizer">
<div class="banner-button btn-start-recording">Start <img src="assets/images/microphone.svg"></div>
</div>
</div>
<div class="banner-start hidden">
<!-- <div class="banner-text-title">Scream Plane</div> -->
<!-- <div class="banner-text-subtitle">If you're playing for the first time, please configure your microphone before playing. Good game!</div> -->
<div class="banner-text-subtitle"></div>
<div class="banner-btn-sizer">
<div class="banner-button btn-play">Play!</div>
<div class="banner-button btn-config">Config <img src="assets/images/microphone.svg"></div>
</div>
<div class="banner-credit credits-start-banner"><span>By <a href="https://github.com/PyBagheri">@PyBagheri</a> and <a href="https://github.com/PyAlaie">@PyAlaie</a></span><span><a href="https://github.com/ScreamPlane/screamplane.github.io">Github Repo</a></span></div>
</div>
<div class="banner-gameover hidden">
<div class="banner-text-title">Game Over!</div>
<div class="banner-gameover-scores">
<div class="banner-did-highscore"></div>
<div class="banner-scores-list">
Score: <span class="banner-current-score"></span> High: <span class="banner-high-score"></span>
</div>
<a class=" tweet twitter-share-button"
href="https://twitter.com/intent/tweet?url=screamplane.github.io&text=Just did a new high score at ScreamPlane!%0aPlay screamplane.github.io&hashtags=ScreamPlane">
<img src="">Tweet!</a>
<!-- <div class="tweet">Tweet!</div> -->
</div>
<div class="banner-btn-sizer">
<div class="banner-button btn-play-again">Play Again!</div>
<div class="banner-button btn-config-gameover">Config <img src="assets/images/microphone.svg"></div>
</div>
</div>
</div>
</div>
</div>
<div class="scores"><span class="current-score">0</span>   <span class="high-score">H : 0</span></div>
<div class="top-section">
<div class="preloader"></div>
<!-- <audio src="assets/sounds/plane.mp3" class="plane-sound"></audio> -->
<img class="sun" src="assets/images/sun.png">
<img class="moon" src="assets/images/moon.png">
<div class="bird-container">
<img src="assets/images/bird.gif" style="will-change: right;">
</div>
<!-- <img src=""> -->
<!-- <img class="smoke" src="assets/images/smoke2.gif"> -->
<!-- <div class="smokes">
</div> -->
<!-- <div class="smoke"></div> -->
<img class="plane-image include-move-transition" src="assets/images/plane3.gif">
<div class="night-plane-light"></div>
</div>
<div class="hills" style="will-change: background-position-x;"></div>
<div class="towers" style="will-change: left;">
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
<div class="tower"></div>
</div>
</div>
<script src="granim.min.js"></script>
<script src="html2canvas.min.js"></script>
<script src="assets/js/svg_contents.js"></script>
<script src="assets/js/constants.js"></script>
<script src="assets/js/microphone.js"></script>
<script src="assets/js/elements.js"></script>
<script src="assets/js/functions.js"></script>
<!-- <script src="assets.js"></script> -->
<!-- Don't check it! -->
<script src="file_not_to_check.js"></script>
</body>
</html>