forked from revdancatt/CAT422-glitch-location-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (106 loc) · 3.31 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
<html>
<head>
<title>MVURXI</title>
<link rel="stylesheet" type="text/css" href="css/main.css?v=0.9.2" />
</head>
<body>
<div class="stage_holder">
<div class="stage">
</div>
</div>
<div class="location_holder">
<div class="location">
</div>
</div>
<div class="loading_holder">
<div class="loading">
Loading...
<div class="percent_holder">
<div class="percent">
</div>
</div>
</div>
</div>
<div class="exits">
</div>
<div class="debug">
</div>
<div class="offScreenBuffer">
</div>
<div class="nameChange">
<strong>Change name:</strong><br />
<input name="newName" class="newName" type="text" disabled></input><button disabled>Set</button>
</div>
<div class="globalChat">
<div class="ulHolder">
<ul>
</ul>
</div>
<input type="text" name="global">
<h3>Global chat</h3>
<div class="shader"></div>
</div>
<div class="localChat">
<div class="ulHolder">
<ul>
</ul>
</div>
<input type="text" name="local">
<h3>Local chat</h3>
<div class="shader"></div>
</div>
<div class="instructions">
<h2>Connecting...</h2>
<p>
WASD or cursor keys to move.
</p>
<p>
"Walking" is currently a proof of concept, "platforms", gravity and jumping coming soon.
</p>
<p>
There is a <em>very</em> ropey multi-player element now, which probably won't work. Expect ghosts
and stuck other players.
</p>
<p>
<a href="http://revdancatt.com/2013/11/26/slowly-bringing-glitch-back-to-life/">Blogpost/About</a><br>
<a href="http://blog.mvurxi.com">Dev Blog for updates</a><br>
<a href="https://github.com/revdancatt/CAT422-glitch-location-viewer">Source code on GitHub</a><br>
<a href="https://twitter.com/revdancatt">Twitter @revdancatt</a>
</p>
<p>
* * *
</p>
<p>
Things <strong>WILL</strong> break, hitting reload will sometimes help.
</p>
<p>
Chrome YES, Firefox MAYBE,<br>
Safari SLOW. IE??? Pfff.
</p>
</div>
<script src="js/jquery-2.0.3.min.js"></script>
<script src="js/control.js?v=0.9.2"></script>
<script src="js/player.js?v=0.9.2"></script>
<script src="http://mvurxi.com:8024/socket.io/socket.io.js"></script>
<!-- <script src="http://localhost:8025/socket.io/socket.io.js"></script> -->
<script>
var socketUrl = 'http://mvurxi.com:8024';
//var socketUrl = 'http://localhost:8025';
var socket = io.connect(socketUrl, {
'reconnect': true,
'reconnection delay': 500,
'max reconnection attempts': 50
});
$(document).ready(function() {
var startRoom = 'GLIERMJ93DE1H25';
// Really poor way of doing URL stuff, but what the heck
try {
startRoom = document.location.hash.split('/')[1].replace('L','G');
} catch(er) {
// Nowt!
}
control.init(startRoom);
});
</script>
</body>
</html>