-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
52 lines (51 loc) · 1.67 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
<!DOCTYPE html>
<html>
<head>
<title>PtolemyJS</title>
<link rel="apple-touch-icon" sizes="96x96" href="apple-touch-icon.png">
<link rel="icon" type="image/png" href="apple-touch-icon.png" sizes="96x96">
<link rel="icon" type="image/png" href="favicon.png" sizes="16x16">
<style type="text/css">
body {
background-color:#cdd;
}
#infopanel {
display:inline-block;
vertical-align:top;
width:400px;
padding:0 15px;
}
#canvaspanel {
display:inline-block;
vertical-align:top;
width:calc(100% - 430px);
}
</style>
<script data-main="ptolemy/app" src="node_modules/requirejs/require.js"></script>
</head>
<body>
<div id="infopanel">
<h1>PtolemyJS</h1>
<p>
PtolemyJS is an Open Source 2D map engine for video games in JS !
You can find the <a href="https://github.com/feelic/PtolemyJS">source code on github</a>
<p>
<p>
PtolemyJS is inspired by
</p>
<ul>
<li>Paradox Interactive's Clausewitz engine</li>
<li>Amit Patel's fantastic work on <a href="http://www-cs-students.stanford.edu/~amitp/game-programming/polygon-map-generation/">procedural map generation with voronoi diagrams</a></li>
</ul>
<p>
<button id="randomMap">Create a Random Map</button> with <input id="cellsCount" value="500" type="number"> cells <button id="exportMap">Export Map</button> <button id="importMap">Import Map</button>
</p>
<p>
<textarea id="mapInput"></textarea>
</p>
</div><div id="canvaspanel">
<div id="canvas">
</div>
</div>
</body>
</html>