forked from operasoftware/Emberwind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (123 loc) · 5.24 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
<head>
<title>Emberwind</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="apple-touch-icon-precomposed" href="icon_57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="icon_72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="icon_114x114.png" />
<link href='http://fonts.googleapis.com/css?family=Lobster&subset=latin,cyrillic' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Allan:700&v2' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Meddon&v2' rel='stylesheet' type='text/css'/>
<link href='http://fonts.googleapis.com/css?family=Cuprum:700italic&subset=latin,cyrillic,latin-ext' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="src/Common.js"></script>
<script type="text/javascript" src="src/Perlin.js"></script>
<script type="text/javascript" src="src/ChaikinCurve.js"></script>
<script type="text/javascript" src="src/render/Render.js"></script>
<script type="text/javascript" src="src/render/RenderCanvas.js"></script>
<script type="text/javascript" src="src/render/RenderWebGL.js"></script>
<script type="text/javascript" src="src/render/Utils.js"></script>
<script type="text/javascript" src="src/render/glMatrix.js"></script>
<script type="text/javascript" src="src/render/webgl-utils.js"></script>
<script type="text/javascript" src="src/Audio.js"></script>
<script type="text/javascript" src="src/Animation.js"></script>
<script type="text/javascript" src="src/Collision.js"></script>
<script type="text/javascript" src="src/Movement.js"></script>
<script type="text/javascript" src="src/Trigger.js"></script>
<script type="text/javascript" src="src/ParticleSystem.js"></script>
<script type="text/javascript" src="src/DialogueSystem.js"></script>
<script type="text/javascript" src="src/GameObjects.js"></script>
<script type="text/javascript" src="src/HittableObject.js"></script>
<script type="text/javascript" src="src/PlayerCharacter.js"></script>
<script type="text/javascript" src="src/Gremlin.js"></script>
<script type="text/javascript" src="src/CaveEntrance.js"></script>
<script type="text/javascript" src="src/House.js"></script>
<script type="text/javascript" src="src/Pickup.js"></script>
<script type="text/javascript" src="src/Breakables.js"></script>
<script type="text/javascript" src="src/GremlinBasket.js"></script>
<script type="text/javascript" src="src/ResourceClasses.js"></script>
<script type="text/javascript" src="src/ResourceDepot.js"></script>
<script type="text/javascript" src="src/Stage.js"></script>
<script type="text/javascript" src="src/StageClasses.js"></script>
<script type="text/javascript" src="src/GUIButtons.js"></script>
<script type="text/javascript" src="src/GUIHeadsUp.js"></script>
<script type="text/javascript" src="src/FSM.js"></script>
<script type="text/javascript" src="src/Game.js"></script>
<script type="text/javascript" src="src/Input.js"></script>
<script type="text/javascript" src="src/AppStates.js"></script>
<script type="text/javascript" src="src/App.js"></script>
<script type="text/javascript" src="src/GremlinStates.js"></script>
<script type="text/javascript" src="src/PCStates.js"></script>
<script type="text/javascript" src="src/Wick.js"></script>
<script type="text/javascript" src="src/TutorialTip.js"></script>
<script type="text/javascript" src="src/Villager.js"></script>
<script type="text/javascript" src="src/Lamppost.js"></script>
<script type="text/javascript">
var app = null;
window.onload = function() {
utils.loadShaderXml("src/render/shaders.xml", null, function(shaders) {
if (shaders instanceof Exception) {
app = shaders;
} else {
try {
app = new App('canvas', shaders, null);
} catch (e) {
app = e;
}
}
});
document.onselectstart = function () {
return false;
};
};
function application() {
if (app == null) {
alert("Application is absent");
throw "no application";
} else if (app instanceof Exception) {
alert("An exception occured while creating the application:\n" + app.message);
throw app;
} else {
return app;
}
}
</script>
<style type="text/css">
body{
margin: 0px; padding: 0px; overflow: hidden;
background: #000;
}
#canvas-holder.active {
position: absolute;
padding: 0px;
left: 50%;
top: 50%;
}
#canvas-holder.inactive {
position: absolute;
top:50%;
width: 100%;
text-align: center;
}
#canvas {
padding: 0px;
width: 100%;
height: 100%;
color: #fff;
font-family: Allan, Arial;
font-size: 40px;
}
</style>
</head>
<body>
<div id="canvas-holder" class="inactive">
<div id="canvas">Emberwind is loading...</div>
</div>
<div style="font-family: Lobster; visibility: hidden">one</div>
<div style="font-family: Allan; visibility: hidden">two</div>
<div style="font-family: Meddon; visibility: hidden">three</div>
<div style="font-family: Cuprum; visibility: hidden">four</div>
</body>
</html>