-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (155 loc) · 6.38 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content=" user-scalable=no" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=0" /> -->
<link rel="stylesheet" href="style.css" />
<meta name="Cross-Origin-Opener-Policy" content="none" />
<title>Pixel Rush!</title>
<link
rel="shortcut icon"
href="./Assets/Avatars/Ninja/down.png"
type="image/x-icon"
/>
<script type="module" src="/main.js" defer></script>
</head>
<body>
<div style="display: none">
<img src="./Assets/Avatars/Ninja/up.png" alt="" class="ninja" />
<img src="./Assets/Avatars/Ninja/down.png" alt="" class="ninja" />
<img src="./Assets/Avatars/Ninja/left.png" alt="" class="ninja" />
<img src="./Assets/Avatars/Ninja/right.png" alt="" class="ninja" />
<img
src="./Assets/Avatars/Ninja/pattern.png"
alt=""
class="ninja"
/>
<img src="./Assets/Avatars/gruce/up.png" alt="" class="gruce" />
<img src="./Assets/Avatars/gruce/down.png" alt="" class="gruce" />
<img src="./Assets/Avatars/gruce/left.png" alt="" class="gruce" />
<img src="./Assets/Avatars/gruce/right.png" alt="" class="gruce" />
<img
src="./Assets/Avatars/gruce/pattern.png"
alt=""
class="gruce"
/>
<img src="./Assets/Avatars/gas/up.png" alt="" class="gas" />
<img src="./Assets/Avatars/gas/down.png" alt="" class="gas" />
<img src="./Assets/Avatars/gas/left.png" alt="" class="gas" />
<img src="./Assets/Avatars/gas/right.png" alt="" class="gas" />
<img src="./Assets/Avatars/gas/pattern.png" alt="" class="gas" />
<img src="./Assets/Avatars/ndran/up.png" alt="" class="ndran" />
<img src="./Assets/Avatars/ndran/down.png" alt="" class="ndran" />
<img src="./Assets/Avatars/ndran/left.png" alt="" class="ndran" />
<img src="./Assets/Avatars/ndran/right.png" alt="" class="ndran" />
<img
src="./Assets/Avatars/ndran/pattern.png"
alt=""
class="ndran"
/>
</div>
<div class="controls">
<button onclick="toggleMusic()" class="control">
<img
src="Assets/Icons/music-note-svgrepo-com.svg"
alt="music"
/>
</button>
<button class="control" onclick="toggleFullscreen()">
<img src="Assets/Icons/maximize.png" alt="fullscreen" />
</button>
</div>
<div class="errContainer"></div>
<div class="startPage">
<div>
<h1> Pixel<span></span>Rush</h1>
<div currentAvatar="ninja">
<img
src="./Assets/Icons/arrow-down-sign-to-navigate.png"
alt="leftArrow"
class="navArrows"
onclick="changeAvatar(0)"
/>
<img
src="./Assets/Avatars/Ninja/down.png"
alt="avatar"
name="ninja"
/>
<img
src="./Assets/Avatars/Gruce/down.png"
alt="avatar"
name="gruce"
/>
<img
src="./Assets/Avatars/Gas/down.png"
alt="avatar"
name="gas"
/>
<img
src="./Assets/Avatars/ndran/down.png"
alt="avatar"
name="ndran"
/>
<div class="yogisCredit">
Special thanks to
<a
href="https://www.instagram.com/toshiro_yogi/"
target="_blank"
>@toshiro_yogi</a
>
for creating this avatar
</div>
<img
src="./Assets/Icons/arrow-down-sign-to-navigate.png"
alt="rightArrow"
class="navArrows"
onclick="changeAvatar(1)"
/>
</div>
<button id="signBtn" onclick="signIn()">
<img src="./Assets/Icons/search.png" alt="Google" /> Sign in
with Google
</button>
<input
type="text"
name="gamerID"
id="gamerID"
style="display: none"
readonly
/>
<form onsubmit="joinLobby(event,lobbyName.value)">
<input type="text" name="lobbyName" /><input
type="submit"
value="Join"
/>
</form>
<form onsubmit="createLobby(event,lobbyName.value)">
<input type="text" name="lobbyName" /><input
type="submit"
value="Create"
/>
</form>
</div>
</div>
<div class="blackScreen">
<div class="loadingContainer">
<img src="./Assets/Avatars/Ninja/up.png" alt="loadingLoop" />
<img src="./Assets/Avatars/Ninja/right.png" alt="loadingLoop" />
<img src="./Assets/Avatars/Ninja/down.png" alt="loadingLoop" />
<img src="./Assets/Avatars/Ninja/left.png" alt="loadingLoop" />
<h2>Loading...</h2>
</div>
</div>
<div class="container">
<canvas></canvas>
<div class="scoreBoard">
<div class="scoreCard scoreCard1"></div>
<div class="scoreCard scoreCard2"></div>
<div class="scoreCard scoreCard3"></div>
<div class="scoreCard scoreCard4"></div>
<div class="scoreCard scoreCard5"></div>
</div>
</div>
</body>
</html>