-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (50 loc) · 1.78 KB
/
Copy pathindex.html
File metadata and controls
57 lines (50 loc) · 1.78 KB
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
<html>
<head>
<title>ZEngine</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript">
function resizeIframe(obj) {
obj.style.height = 0;
obj.style.height = (obj.contentWindow.document.body.scrollHeight + 20) + 'px';
}
</script>
</head>
<body>
<div id="main">
<a href="."><h1><span style="color: #0190ff;">ZE</span>ngine Examples</h1></a>
<div id="left">
<h2>ZEngine</h2>
<ol>
<li><a href="?examples/initialise">Initialising ZEngine</a></li>
<li><a href="?examples/specialmethods">Special Methods</a></li>
<li><a href="?examples/loadscripts">Loading Scripts</a></li>
<li><a href="?examples/scenes">Scenes</a></li>
<li><a href="?examples/input">Input</a></li>
</ol>
<h2>ZEngineObject</h2>
<ol>
<li><a href="?examples/components">Components</a></li>
<li><a href="?examples/transform">Transform</a></li>
<li><a href="?examples/sprite">Sprite / Animation</a></li>
<li><a href="?examples/text">Text</a></li>
<li><a href="?examples/collision">Collision</a></li>
<li><a href="?examples/prefabs">Prefabs</a></li>
</ol>
<h2>Controllers</h2>
<ol>
<li><a href="?examples/platformer">PlatformerController</a></li>
<li><a href="?examples/birdseye">BirdsEyeController</a></li>
<li><a href="?examples/tiledrpg">TiledRPGController</a></li>
</ol>
</div>
<div id="right">
<iframe src="" onload="resizeIframe(this);"></iframe>
</div>
</div>
<script type="text/javascript">
var path = window.location.href.split("?")[1];
if(path === undefined || path == "") path = "examples/initialise";
document.querySelector("iframe").src = path+".html";
</script>
</body>
</html>