-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (82 loc) · 3.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Human Robot Interaction Experiment</title>
<style>
.main{
display: flex;
margin: 0 auto;
position: relative;
width: 750px;
}
.sideinfo {
margin-top: 20px;
margin-left: 10px;
border: 3px solid black;
width: 200px;
height: 620px;
padding-left: 10px;
}
.map {
margin-top: 20px;
border: 1px solid black;
width: 528px;
height: 528px;
position: relative;
}
.ul-side {
padding: 0;
margin: 0;
padding-left: 20px;
padding-right: 20px;
}
</style>
</head>
<body>
<div class = "main">
<div class="map">
<canvas class = "canvas" width="528" height="528"></canvas>
</div>
<div class="sideinfo">
<form>
<label for="username">ProlificID:</label><br>
<input type="text" id="username" name="username"><br>
</form>
<p id="mapcount"><b>Map</b>: 1/1</p>
<p id="objective"><b>Objective</b>: Deliver x object(s)</p>
<p id="collected"><b>Delivered Object(s)</b>: 0</p>
<p><b>Your Attributes</b>:</p>
<ul class="ul-side">
<li id="strstat">Strength = 5</li>
<li id="dexstat">Dexterity = 8</li>
</ul>
<p><b>Robot's Attributes</b>:</p>
<ul class="ul-side">
<li id="strstat">Strength = 8</li>
<li id="dexstat">Dexterity = 5</li>
</ul>
<p><b>Object's Attributes</b>:</p>
<ul class="ul-side">
<li>Top left is strength requirement</li>
<li>Bottom right is dexterity requirement</li>
</ul>
<p><b>Control</b>: </p>
<ul class="ul-side">
<li>Arrow keys: Movements</li>
<li>"Space" key: Pick up or drop down an object; destroy an obstacle</li>
<li>"Return/Enter" key: Stay put (do nothing)</li>
</ul>
<!-- <p id="completioncode"><b>Completion Code</b>: </p> -->
</div>
</div>
<script src ="scripts/render.js"></script>
<script src ="scripts/object.js"></script>
<script src ="scripts/player.js"></script>
<script src ="scripts/location.js"></script>
<script src ="scripts/ai_robot.js"></script>
<script src ="scripts/task.js"></script>
<script src ="scripts/game_declaration.js"></script>
<script src ="scripts/game_logic.js"></script>
</body>
</html>