-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (28 loc) · 874 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://cdn.socket.io/stable/socket.io.js"></script>
<script>WEB_SOCKET_SWF_LOCATION = 'http://cdn.socket.io/stable/WebSocketMain.swf';</script>
<script src="/static/slrender.js"></script>
<script src="/static/mobs.js"></script>
<script src="/static/game.js"></script>
<script>
window.onload = function() {
/* send the message when submit is clicked
$('#chatform').submit(function (evt) {
var line = $('#chatform [type=text]').val()
$('#chatform [type=text]').val('')
s.send(line);
return false;
});
*/
start_game();
};
</script>
</head>
<body>
<canvas id="game" width="1024" height="1024"></canvas>
<div id="log"></div>
</body>
</html>