-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (42 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<title>Ping Pong</title>
<style>
#board {
background-color: dimgray;
}
#left-paddle {
fill: red;
}
#right-paddle {
fill: lightskyblue;
}
#ball {
fill: whitesmoke;
}
</style>
</head>
<body>
<svg id="board">
<rect id="left-paddle" width="10px" height="40px" />
<rect id="right-paddle" width="10px" height="40px" />
<circle id="ball" r="6" />
</svg>
<button name="singleplayer">Singleplayer</button>
<button name="init-socket">Multiplayer</button>
<button name="start-multiplayer" disabled>New Multiplayer Game</button>
<button name="join-multiplayer" disabled>Join Multiplayer Game</button>
<div>
<label>
bot mode
<input type="checkbox" name="is-use-bot" />
</label>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="/app.js"></script>
<script>
injectSocketIO(io);
</script>
</body>
</html>