-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
40 lines (40 loc) · 1.18 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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<title>Multiplayer Game</title>
<style>
canvas {
position: absolute;
left: 0;
top: 100px;
height: calc(100% - 100px);
width: 100%;
background-color: rgba(0,0,0,0);
}
span, button {
font: 12pt Arial;
}
h1 {
font-family: Arial;
}
</style>
<script src="https://cdn.babylonjs.com/babylon.js"></script>
<script src="https://cdn.babylonjs.com/gui/babylon.gui.min.js"></script>
<script src="https://code.jquery.com/pep/0.4.3/pep.min.js"></script>
<script src="classes/avatar.js"></script>
<script src="classes/billboard.js"></script>
<script src="classes/input.js"></script>
<script src="classes/player.js"></script>
<script src="classes/socket.js"></script>
<script src="classes/UI.js"></script>
<script src="classes/world.js"></script>
</head>
<body>
<h1>Multiplayer Game</h1>
<span>Username: </span><input type="text" id="username">
<button id="login" onclick="UI.login()">Log-in</button>
<canvas id="canvas"></canvas>
</body>
<script src="client.js"></script>
</html>