-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapper.html
32 lines (32 loc) · 1.6 KB
/
mapper.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Birdbones Mapper</title>
<link href="mapper.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.gif" type="image/x-icon">
</head>
<body>
<h1>The Birdbones Mapper</h1>
<h2>Mapping utility for the Birdbones game engine</h2>
<div class="split left">
<button class="btn" onclick="setAddVertex(event)">add vertex</button></br>
<button class="btn" onclick="setRemoveVertex(event)">remove vertex</button></br>
<button class="btn" onclick="setCreateTriangle(event)">create triangle</button></br>
<button class="btn" onclick="setDestroyTriangle(event)">destroy triangle</button>
<label for="upload-map" class="btn img-btn">select image</label>
<input id="upload-map" type="file" accept="image/*" onchange="setImage();"><br>
<button class="btn" onclick="exportData()">export to CPP</button><br>
<button class="btn" onclick="exportJSON()">save as JSON</button><br>
<label for="import-json" class="btn json-btn">load from JSON</label>
<input id="import-json" type="file" accept="application/json" onchange="importJSON()">
</div>
<div class="split right">
<div class="registers">
<canvas id="bbmap" width="640" height="400" onclick="canvasClick(event)"></canvas>
</div>
</div>
<script src="mapper.js"></script>
</body>
</html>