-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSpaceHunt Core HTML.html
165 lines (146 loc) · 4.77 KB
/
SpaceHunt Core HTML.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<html>
<head>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="configuration.js"></script>
<script src="trevorliberty.js"></script>
<script src="loadGame.js"></script>
<script src="RunningOutOfSupplies.js"></script>
<script src="RunningOutOfEnergy.js"></script>
<script src="SpaceCraftMovement.js"></script>
<script src="placeArtifacts.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
$("document").ready(function(){
$(".lPanel").css({"visibility": "hidden"});
var user = localStorage.getItem("userType");
if(user == "administrator"){
$(".lPanel2").css({"visibility": "hidden"});
$(".lPanel").css({"visibility": "visible"});
}
});
</script>
<style>
@font-face {
font-family: 'starnext';
src: url('starnext.ttf') format('truetype');
}
@font-face {
font-family: 'arcade';
src: url('arcade.ttf') format('truetype');
}
</style>
</head>
<body onload="load(), loadArtifacts()"class="stars">
<div class="header">
<div class="head words">
<button id="save" onClick="saveState()">Save</button>
<button id="quit" value="off" onclick="quit()">Quit</button>
</div>
</div>
<!--Left panel -->
<div class=lPanel>
<span id="space">Space Hunt</span>
<br><br>
<div id="logs">
<div id="lLog">
<span class="words" id="captain">Captain's Log</span>
<textarea id="log" disabled="true"></textarea>
</div>
<div id="rLog">
<span class="words" id="art">Artifact Log</span>
<textarea id="artLog" disabled="true"></textarea>
</div>
</div>
<br><br>
<button class="sensor" class="words" value="off" onclick="sensorOnOff()">Sensor</button>
</div>
<div class=lPanel2>
<span id="space">Space Hunt</span>
<br><br>
<span class="words">Captain's Log
<textarea id="log2" disabled="true"></textarea>
<br><br>
<button class="sensor" value="off" onclick="sensorOnOff()">Sensor</button>
</span>
</div>
<!--Right panel -->
<div class="rPanel">
<br><br>
<!--
<h5>GameType (0-Regular, 1-Never Dies)</h5>
<input style="color:black" type="text" name="gameType" size="1" />
-->
<span class="words">Distance per move<br><br>
<input class="sups" type="number" id="distance" size="4" value="1"/>
</span>
<br>
<!--Up button -->
<div class="moveButtons">
<div class="btn">
<div class="btn-inner">
<input type="button" class="movement" value="Up"/>
</div>
</div><br>
<!--Left button -->
<div class="btn btn-green">
<div class="btn-green-inner">
<input type="button" class="movement" value="Left"/>
</div>
</div>
<!--Right button -->
<div class="btn btn-green">
<div class="btn-green-inner">
<input type="button" class="movement" value="Right"/>
</div>
</div><br>
<!--Down button -->
<div class="btn">
<div class="btn-inner">
<input type="button" class="movement" value="Down"/>
</div>
</div>
<br>
</div>
<span class="words">Current Location: <br><br>
X: <input class="sups" id="xCoord" type="text" name="yValue" size="4" value="0"/>
Y: <input class="sups" id="yCoord" type="text" name="xValue" size="4" value="0"/>
</span>
</div>
</div>
<!-- Game board -->
<div class="board">
<div class="stars twinkling">
<div class="container h-100" style="background-color:transparent">
<div class="row align-items-center h-100" style="background-color: transparent;">
<div class="" style="background-color:transparent">
<table id="container"></table>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="foot">
<!-- <input type="text" id="maxSize"/>
<input type="text" id="wormholeFixed"/>
<input type="text" id="dies"/> -->
<span class="words">Energy: <input class="sups" type="number"id="energy" disabled="true"/></span>
<span class="words">Supplies: <input class="sups" id="supplies" disabled="true"/></span>
<span class="words">Credits: <input class="sups" type="number" id="credits"/></span>
</div>
</div>
<script>
function quit() {
if(confirm("Would you like to exit the game?")) {
window.location.href = "index.html";
}
}
</script>
</body>
</html>