-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
89 lines (81 loc) · 2.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>strategy</title>
<script src="https://kerrishaus.com/assets/scripts/jquery-3.7.0.min.js"></script>
<link rel="stylesheet" id="gameStyles" href="./styles/game.css" />
<link rel="stylesheet" id="interfaceStyles" href="./styles/interface.css" />
<script>
const params = new URLSearchParams(window.location.search);
window.gameDebug = params.has("debug");
//if (gameDebug)
{
$("head").append(`<script src="https://portal.kerrishaus.com/assets/javascript/messages.js"><\/script>`);
$("head").append(`<link rel="stylesheet" href="https://portal.kerrishaus.com/assets/styles/messages.css" />`);
$(document).ready(function() {
$("body").append(`
<div id="debug">
<div>
<span>state:</span>
<span id="debug-state"></span>
</div>
<div>
<span>clientId:</span>
<span id="debug-clientId"></span>
</div>
<div>
<span>lobbyId:</span>
<span id="debug-lobbyId"></span>
</div>
<div>
<span>lobbyOwnerId:</span>
<span id="debug-lobbyOwnerId"></span>
</div>
<div>
<span>networked:</span>
<span id="debug-networked"></span>
</div>
<div>
<span>clientCount:</span>
<span id="debug-clientCount"></span>
</div>
<div>
<span>stage:</span>
<span id="debug-stage"></span>
</div>
<div>
<span>turn:</span>
<span id="debug-turn"></span>
</div>
<div>
<span>turnClientId:</span>
<span id="debug-turnClientId"></span>
</div>
<div>
<span>lastHoverTileId:</span>
<span id="debug-lastHoverTileId"></span>
</div>
<div>
<span>lastHoverOwnerId:</span>
<span id="debug-lastHoverOwnerId"></span>
</div>
<div>
<span>lastHoverOwnerColor:</span>
<span id="debug-lastHoverOwnerColor"></span>
</div>
</div>
`);
});
}
</script>
</head>
<body>
<script type="module">
import { StateMachine } from "./scripts/states/StateMachine.js";
import { LoadingState } from "./scripts/states/LoadingState.js";
window.stateManager = new StateMachine();
stateManager.pushState(new LoadingState());
</script>
</body>
</html>