forked from konrad2002/GodMode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
157 lines (137 loc) · 6.26 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
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GodMode</title>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/boost.js"></script>
<script src="js/config.js"></script>
<script src="js/setup.js"></script>
<script src="js/entity.js"></script>
<script src="js/game.js"></script>
<script src="js/population.js"></script>
<script src="js/map.js"></script>
<script src="js/main.js"></script>
<script src="js/listener.js"></script>
<script src="js/chart.js"></script>
<script src="data/ranks.json"></script>
<script src="data/entities/cc.json"></script>
<script src="data/entities/rc.json"></script>
<script src="data/entities/ms.json"></script>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/nav.css">
<link rel="stylesheet" href="css/config.css">
<link rel="stylesheet" href="css/form.css">
<link rel="stylesheet" href="css/map.css">
<link rel="stylesheet" href="css/stats.css">
<link rel="stylesheet" href="css/chart.css">
</head>
<body onload="onload();">
<div class="main">
<header>
<nav>
<ul>
<li><span class="nav-title">GodMode</span></li>
<li><a href="">Reload</a></li>
<li><a href="/godmode/credits">Credits</a></li>
<li><a href="/godmode">Simulator</a></li>
<li><a href="/godmode/editor">Editor</a></li>
</ul>
</nav>
</header>
<div class="content">
<h1>GodMode</h1>
<hr>
<h2>Configs</h2><br>
<div class="configs">
<div class="config-box">
<h3>Setup</h3>
<label for="width">Width</label>
<input type="number" id="width" value="60"><br>
<label for="height">Height</label>
<input type="number" id="height" value="60"><br>
<label for="speed">Speed</label>
<input type="number" id="speed" value="1">
<label for="maprate">Maprate</label>
<input type="number" id="maprate" value="10"><br>
<label for="graphrate">Graphrate</label>
<input type="number" id="graphrate" value="250"><br>
<button type="button" id="setupBtn">Setup</button>
</div>
<div class="config-box">
<h3>Properties</h3>
<label for="propertyId">PropertyID</label>
<input type="number" id="propertyId" value="1000"><br>
<label for="PropertiesText">Properties Text</label>
<textarea id="propertiesText" rows="23" cols="25"></textarea>
</div>
<div class="config-box">
<h3>Individuals</h3>
<input type="checkbox" id="selectCC">
<label for="selectCC">🌿Chlorocea chloronella</label>
<input type="number" id="populationSizeCC" value="1600"><br>
<input type="checkbox" id="selectRC">
<label for="selectRC">🐸Ranidae chlorophagi</label>
<input type="number" id="populationSizeRC" value="80"><br>
<input type="checkbox" id="selectMS">
<label for="selectMS">🦨Mustelidae severi</label>
<input type="number" id="populationSizeMS" value="20">
</div>
<div class="config-box">
<h3>Controls</h3><br>
<button type="button" id="newPopulationBtn">New Population</button><br><br>
<!-- <button type="button" id="doStepBtn">Step</button> -->
<button type="button" id="startLoopBtn">Toggle Loop</button>
</div>
</div>
<hr>
<div class="wrapper" id="wrapper">
<h2>Simulation</h2>
<div class="stats">
<div class="stats-child">
<span class="stat-description">Steps</span>
<span class="stat-value" id="statsSteps">0</span>
</div>
<div class="stats-child">
<span class="stat-description">Days</span>
<span class="stat-value" id="statsDays">0</span>
</div>
<div class="stats-child">
<span class="stat-description">Months</span>
<span class="stat-value" id="statsMonths">0</span>
</div>
<div class="stats-child">
<span class="stat-description">CC🌿</span>
<span class="stat-value" id="statsNCC">0</span>
</div>
<div class="stats-child">
<span class="stat-description">RC🐸</span>
<span class="stat-value" id="statsNRC">0</span>
</div>
<div class="stats-child">
<span class="stat-description">MS🦨</span>
<span class="stat-value" id="statsNMS">0</span>
</div>
</div>
<canvas id="canvas_map"></canvas>
<canvas id="canvas_individuals"></canvas>
<canvas id="canvas_paths"></canvas>
<canvas id="canvas_events"></canvas>
</div>
<hr>
<div class="results">
<h2>Result</h2>
<figure class="highcharts-figure">
<div id="container"></div>
<p class="highcharts-description">
In the chart above the amount of individuals per type and time is shown.
</p>
</figure>
</div>
</div>
</div>
</body>
</html>