-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
145 lines (136 loc) · 4.61 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Miniprog 2022 - Korešpondenčné kolo</title>
<!-- General Purpose Libraries -->
<script src="https://loumadev.eu/JustLib.js"></script>
<!-- <script src="https://loumadev.eu/JustLibDraw.js"></script> -->
<script src="https://loumadev.eu/NeuralNetwork.js"></script>
<!-- Game Specific Files -->
<script src="Renderer.js"></script>
<script src="GameMap.js"></script>
<script src="MapObject.js"></script>
<script src="Navigation.js"></script>
<script src="Game.js"></script>
<script src="PlayerController.js"></script>
<script src="MapParser.js"></script>
<script src="Player.js"></script>
<script src="PlayerAI.js"></script>
<script src="PlayerAIv2.js"></script>
<script src="UI.js"></script>
<script src="Utils.js"></script>
<!-- Main entry -->
<script src="main.js" defer></script>
</head>
<body>
<main class="flex row">
<div class="screen">
<pre class="canvas main"></pre>
</div>
<div class="ui">
<div class="inventory flex row"></div>
<div class="monsters"></div>
<div class="arrows"></div>
<div class="navigation"></div>
<div class="log"></div>
</div>
</main>
<aside>
<div class="options">
<div class="player">
<h2>Player Options</h2>
<div class="item">
<select id="playerMode">
<option value="player" selected>Player</option>
<option value="ai_agent_v1">Neural AI Agent (v1 *broken*)</option>
<option value="ai_agent_v2">Algorithmic AI Agent (v2 *working*)</option>
</select>
<span>Player mode</span>
</div>
<div class="item">
<input type="number" id="ai_delay_main" min="20" step="10" max="1000" value="200">
<span>AI Player delay</span>
</div>
<div class="item">
<input id="renderHelper" type="checkbox">
<span>Render helper games</span>
</div>
</div>
<div class="mapOptions">
<h2>Map Options</h2>
<div class="item">
<select id="mapFile">
<option value="1.map" selected>1.map</option>
<option value="2.map">2.map</option>
<option value="3.map">3.map</option>
<option value="4.map">4.map</option>
<option value="5.map">5.map</option>
<option value="test_0.map">test_0.map</option>
<option value="test_1.map">test_1.map</option>
<option value="test_2.map">test_2.map</option>
<option value="test_3.map">test_3.map</option>
<option value="test_4.map">test_4.map</option>
<option value="test_5.map">test_5.map</option>
<option value="test_6.map">test_6.map</option>
<option value="test_7.map">test_7.map</option>
<option value="test_8.map">test_8.map</option>
<option value="test_debug_0.map">test_debug_0.map</option>
<option value="test_debug_1.map">test_debug_1.map</option>
<option value="test_debug_2.map">test_debug_2.map</option>
<option value="test_debug_3.map">test_debug_3.map</option>
</select>
<span>Game map</span>
</div>
</div>
<div id="renderOptions" class="rendering">
<h2>Rendering Options</h2>
<div class="item">
<select id="renderMode">
<option value="basic">Basic</option>
<option value="raycast" selected>Raycast</option>
</select>
<span>Rendering mode</span>
</div>
<div class="item">
<input id="renderDistance" type="number" min="3" max="32" step="1" value="4">
<span>Render distance</span>
</div>
<div class="item">
<input id="viewDistance" type="number" min="1" max="16" step="1" value="3">
<span>View radius</span>
</div>
<div class="item">
<input id="alwaysDrawWalls" type="checkbox" checked>
<span>Always Draw Walls</span>
</div>
<div class="item">
<input id="drawRays" type="checkbox">
<span>Draw Rays</span>
</div>
<div class="item">
<input id="color" type="checkbox" checked>
<span>Use colors</span>
</div>
</div>
<class id="navigationOptions" class="navigation">
<h2>Navigation Options</h2>
<div class="item">
<select id="navigationMode">
<option value="1">Route</option>
<option value="2" selected>Direction</option>
</select>
<span>Navigation mode</span>
</div>
</class>
</div>
<div class="start">
<button id="start">Start the game!</button>
</div>
</aside>
<section class="helper-games"></section>
</body>
</html>