-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
42 lines (42 loc) · 1.33 KB
/
game.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
<html>
<head>
<title>Croquet Guardians</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
body {
overflow: hidden;
background: rgb(30, 30, 30);
}.prevent-select {
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
#joystick {
z-index: 1000;
position: absolute;
right: 50px;
bottom: 50px;
width: 120px;
height: 120px;
border: 3px solid #FFF;
border-radius: 60px;
opacity: 0.5;
}
#knob {
position: absolute;
left: 20px;
top: 20px;
width: 80px;
height: 80px;
border-radius: 40px;
background-color: #FFF;
}
</style>
<script>window.API_KEY = <%= api_key %></script>
<%= croquet_script %>
</head>
<body>
<div id="joystick"><div id="knob"></div></div>
</body>
</html>