2024-11-26 15:35:25 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Tanks</title>
|
|
|
|
<link rel="stylesheet" href="style.css">
|
2024-12-04 18:39:55 -07:00
|
|
|
<script src="main.mjs" type="module"></script>
|
2024-11-26 15:35:25 -07:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Tanks</h1>
|
|
|
|
|
|
|
|
<h2>Upload a tank</h2>
|
|
|
|
<form id="upload">
|
|
|
|
<fieldset>
|
2024-12-04 18:39:55 -07:00
|
|
|
<legend>Tank Designer</legend>
|
2024-11-26 15:35:25 -07:00
|
|
|
<fieldset>
|
|
|
|
<legend>Program</legend>
|
|
|
|
<textarea name="program">30 40 set-speed!
|
|
|
|
0 sensor? { fire! } if
|
|
|
|
</textarea>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>Sensors</legend>
|
|
|
|
<table id="sensors">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>№</td>
|
|
|
|
<td>Range</td>
|
|
|
|
<td>Angle</td>
|
|
|
|
<td>Width</td>
|
|
|
|
<td>Turret?</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset id="preview">
|
|
|
|
<legend>Preview</legend>
|
|
|
|
<div>
|
|
|
|
<canvas id="design"></canvas>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
2024-12-04 18:39:55 -07:00
|
|
|
<label>Token:
|
|
|
|
<input type="text" name="id" placeholder="Token provided by game owner" required>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label>Name:
|
|
|
|
<input type="text" name="name" placeholder="Tank name" required>
|
2024-11-26 15:35:25 -07:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label>Author:
|
|
|
|
<input type="text" name="author" placeholder="Your name" required>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<input type="color" name="color" value="#cccccc" required>
|
|
|
|
</div>
|
|
|
|
|
2024-11-26 17:52:30 -07:00
|
|
|
<input type="submit" value="Upload">
|
2024-12-02 15:11:10 -07:00
|
|
|
<input type="submit" value="Copy upload script" data-script>
|
2024-11-26 15:35:25 -07:00
|
|
|
|
|
|
|
<div id="debug"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2024-12-04 18:39:55 -07:00
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
Game Replay
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<select id="game">
|
|
|
|
<option>latest</option>
|
|
|
|
</select>
|
|
|
|
<output id="date">moo</output>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="game_box">
|
|
|
|
<canvas id="battlefield"></canvas>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table id="results">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Name</th>
|
2024-12-05 15:51:13 -07:00
|
|
|
<th>Kills</th>
|
2024-12-04 18:39:55 -07:00
|
|
|
<th>Death</th>
|
|
|
|
<th>Killer</th>
|
|
|
|
<th>Error</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
Statistics
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<table id="stats">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Games</th>
|
|
|
|
<th>Kills</th>
|
|
|
|
<th>Killed</th>
|
|
|
|
<th>Awards</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
2024-12-02 15:11:10 -07:00
|
|
|
</body>
|
2024-11-26 15:35:25 -07:00
|
|
|
</html>
|