-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
148 lines (148 loc) · 6.23 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Zenn Halsey Basesol '93</title>
<meta name="author" content="Haunted Bees Productions">
<meta name="description" content="We're having a ball out here in space!">
<meta name="keywords" content="gravity,sports,2">
<link rel="shortcut icon" href="favicon.png">
<style>
@font-face { font-family: "Retro"; src: url("RetroGamingZ.ttf") }
body {
font-family: "Retro";
text-align: center;
border: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
canvas {
border: 1px solid black;
image-rendering: pixelated;
left: 0;
margin: 0 auto;
position: absolute;
right: 0;
text-align: center;
}
canvas:not(#canvas) { pointer-events: none }
#minimap {
display: none;
left: -476px;
top: 1px;
background-color: #0000FF;
border: 2px solid white;
}
#p2canvs > canvas {
border: 1px solid white !important;
left: 320px;
width: 320px;
height: 480px;
}
.textOverlay {
background-color: #000000;
color: #FFFFFF;
width: 640px; height: 480px;
left: 0;
margin: 0 auto;
position: absolute;
right: 0;
text-align: center;
z-index: 99999;
}
#awaiter > div {
padding-top: 180px;
font-size: 28px;
}
#helpText { background-color: #000000DD }
#pauseDisplay { background-color: #00000066 }
#helpTextContent {
padding-top: 100px;
margin: 0 40px;
}
#pauseDisplayText {
background-color: #000000EE;
margin-top: 231px;
}
br { line-height: 150% }
#captions {
z-index: 999999;
left: 0;
margin: 0 auto;
position: absolute;
right: 0;
top: 0;
width: 640px;
text-align: center;
}
#captionsText {
display: inline-block;
padding: 5px;
background-color: #000000CC;
color: #FFFFFF;
max-width: 600px;
}
#loader { background-image: url('img/bgLoader.jpg') }
#loaderText {
font-size: 2em;
margin-top: 180px;
}
#copyrightInfo {
position: absolute;
top: 463px;
text-align: right;
width: 640px;
font-size: 0.8em;
}
</style>
</head>
<body style="text-align: center">
<div id="p1canvs">
<canvas id="canvas" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="background" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="background2" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="debug" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="interface" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="overlay" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="text" width="640" height="480" style="border: 1px solid black"></canvas>
</div>
<div id="p2canvs" style="display: none">
<canvas id="p2canvas" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="p2background" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="p2background2" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="p2debug" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="p2interface" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="p2overlay" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="p2text" width="640" height="480" style="border: 1px solid black"></canvas>
</div>
<canvas id="specialanim" width="640" height="480" style="border: 1px solid black"></canvas>
<canvas id="minimap" width="160" height="120"></canvas>
<div id="helpText" class="textOverlay" style="display: none"><div id="helpTextContent"></div></div>
<div id="pauseDisplay" class="textOverlay" style="display: none"><div id="pauseDisplayText">== PAUSED ==</div></div>
<div id="captions" style="display: none"><div id="captionsText">hey</div></div>
<div id="loader" class="textOverlay">
<div id="loaderText">Now Lording</div>
<div id="loaderInfo">0%</div>
<div id="copyrightInfo">© 2020 Sean Finch / Haunted Bees Productions </div>
</div>
<div id="awaiter" class="textOverlay" style="display: none">
<div>
Click here to start the game.
<hr>
<div style="font-size: 0.5em; margin: 0 50px">
Press the H key or the BACK button on your controller at any time to see relevant help information and tips.
</div>
</div>
</div>
<div id="fontLoader"><div style="font-family:Retro"> </div></div>
<script type="text/javascript" src="js/lib/mespeak.js"></script>
<script type="text/javascript" src="js/lib/box2d.min.js"></script>
<script type="text/javascript" src="out.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
game.Initialize(false);
});
</script>
</body>
</html>