-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
55 lines (48 loc) · 1.76 KB
/
index.htm
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nebulous</title>
<!-- EngineJS -->
<script type="text/javascript" src="enginejs/jquery.js"></script>
<script type="text/javascript" src="enginejs/engine.js"></script>
<!-- Icons -->
<link rel="shortcut icon" href="img/favicon.ico"/>
<link rel="apple-touch-icon" href="img/favicon.png">
<!-- Bootstrap -->
<script type="text/javascript" src="bootstrap.js"></script>
<!-- ******************************************************** -->
<!-- SET CURRENT EXERCISE HERE -->
<!-- ******************************************************** -->
<script type="text/javascript" src="exercises/exercise9.js"></script>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/nebulous.css">
<!-- Entry point -->
<script language="javascript">
var g_aspect_ratio = 4 / 3;
$(document).ready(function()
{
Resources.on_loaded = function(resource, i, total)
{
var percent = Math.round(i / total * 100) + "%";
$("#loadinfo").html("Loading " + percent + "<br/><br/>" + resource);
}
Engine.Init(function()
{
// *********************************************************************************************************
// NOTE: bootstrap.js runs the main game loop and calls the Init / Update methods contained in the
// currently loaded exercise JS file (exercises/exerciseX.js)
// *********************************************************************************************************
HelperInit();
return HelperUpdate;
}, Resources);
});
</script>
</head>
<body style="background-color:black;">
<div id="loader">
<img src="img/load.gif"/>
<div id="loadinfo">Loading 0%</div>
</div>
<canvas></canvas>
</body>
</html>