2024-11-26 15:35:25 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Tanks</title>
|
|
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
<script src="designer.mjs" type="module"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Tanks</h1>
|
|
|
|
|
|
|
|
<h2>Upload a tank</h2>
|
|
|
|
<form id="upload">
|
|
|
|
<fieldset>
|
|
|
|
<legend><input type="text" name="name" placeholder="My tank name" required></legend>
|
|
|
|
<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>
|
|
|
|
<label>ID:
|
|
|
|
<input type="text" name="id" placeholder="ID provided by game owner" required>
|
|
|
|
</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-02 15:11:10 -07:00
|
|
|
</body>
|
2024-11-26 15:35:25 -07:00
|
|
|
</html>
|