-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.debug.html
185 lines (164 loc) · 7.85 KB
/
game.debug.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>
Game
</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<style type="text/css">
html, body, div, span, object, iframe, h1, h2, p, a, img, ul, li, fieldset, form, label, legend, table, thead, tbody, tfoot, tr, th, td {
border: 0;
font-size: 100%;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
</style>
<!-- block tz_app_header -->
<!-- end tz_app_header -->
</head>
<body style="background:#B4B4B4;font:normal normal normal 13px/1.231 Helvetica,Arial,sans-serif;text-shadow:1px 1px #F9F8F8;">
<div id="engine" style="background:#939393;margin:auto;
border-left:1px solid #898989;width: 1280px;height:720px">
<!--
HTML to create a plugin or canvas instance.
Supplied by 'tz_engine_div' variable.
-->
<canvas id="turbulenz_game_engine_canvas" moz-opaque="true" tabindex="1">
Sorry, but your browser does not support WebGL or does not have it
enabled. To get a WebGL-enabled browser, please see:<br/>
<a href="http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" target="_blank">
Getting a WebGL Implementation
</a>
</canvas>
<script type="text/javascript">
var canvasSupported = true;
(function()
{
var contextNames = ["webgl", "experimental-webgl"];
var context = null;
var canvas = document.createElement('canvas');
document.body.appendChild(canvas);
for (var i = 0; i < contextNames.length; i += 1)
{
try {
context = canvas.getContext(contextNames[i]);
} catch (e) {}
if (context) {
break;
}
}
if (!context)
{
canvasSupported = false;
window.alert("Sorry, but your browser does not support WebGL or does not have it enabled.");
}
document.body.removeChild(canvas);
}());
var TurbulenzEngine = {};
</script>
</div>
<!-- begin 'tz_include_js' variable -->
<script type="text/javascript" src="jslib/debug.js"></script>
<script type="text/javascript" src="jslib/vmath.js"></script>
<script type="text/javascript" src="jslib/utilities.js"></script>
<script type="text/javascript" src="jslib/aabbtree.js"></script>
<script type="text/javascript" src="jslib/observer.js"></script>
<script type="text/javascript" src="jslib/webgl/ddsloader.js"></script>
<script type="text/javascript" src="jslib/webgl/graphicsdevice.js"></script>
<script type="text/javascript" src="jslib/webgl/inputdevice.js"></script>
<script type="text/javascript" src="jslib/webgl/mathdevice.js"></script>
<script type="text/javascript" src="jslib/webgl/networkdevice.js"></script>
<script type="text/javascript" src="jslib/webgl/physicsdevice.js"></script>
<script type="text/javascript" src="jslib/webgl/sounddevice.js"></script>
<script type="text/javascript" src="jslib/webgl/soundtarloader.js"></script>
<script type="text/javascript" src="jslib/webgl/tarloader.js"></script>
<script type="text/javascript" src="jslib/webgl/tgaloader.js"></script>
<script type="text/javascript" src="jslib/webgl/touch.js"></script>
<script type="text/javascript" src="jslib/webgl/touchevent.js"></script>
<script type="text/javascript" src="jslib/webgl/turbulenzengine.js"></script>
<script type="text/javascript" src="jslib/assettracker.js"></script>
<script type="text/javascript" src="jslib/boxtree.js"></script>
<script type="text/javascript" src="jslib/camera.js"></script>
<script type="text/javascript" src="jslib/draw2d.js"></script>
<script type="text/javascript" src="jslib/effectmanager.js"></script>
<script type="text/javascript" src="jslib/floor.js"></script>
<script type="text/javascript" src="jslib/fontmanager.js"></script>
<script type="text/javascript" src="jslib/forwardrendering.js"></script>
<script type="text/javascript" src="jslib/geometry.js"></script>
<script type="text/javascript" src="jslib/loadingscreen.js"></script>
<script type="text/javascript" src="jslib/physics2ddevice.js"></script>
<script type="text/javascript" src="jslib/physics2ddebugdraw.js"></script>
<script type="text/javascript" src="jslib/requesthandler.js"></script>
<script type="text/javascript" src="jslib/resourceloader.js"></script>
<script type="text/javascript" src="jslib/shadermanager.js"></script>
<script type="text/javascript" src="jslib/soundmanager.js"></script>
<script type="text/javascript" src="jslib/texturemanager.js"></script>
<script type="text/javascript" src="common/dependencies/pathfinding.js"></script>
<script type="text/javascript" src="common/dependencies/underscore.js"></script>
<script type="text/javascript" src="common/protocol.js"></script>
<script type="text/javascript" src="common/math.js"></script>
<script type="text/javascript" src="common/graphics.js"></script>
<script type="text/javascript" src="common/input.js"></script>
<script type="text/javascript" src="common/physics.js"></script>
<script type="text/javascript" src="common/gamestate.js"></script>
<script type="text/javascript" src="common/pathing.js"></script>
<script type="text/javascript" src="common/loop.js"></script>
<script type="text/javascript" src="common/entity.js"></script>
<script type="text/javascript" src="config/config.js"></script>
<script type="text/javascript" src="app/debug.js"></script>
<script type="text/javascript" src="app/ai.js"></script>
<script type="text/javascript" src="app/character.js"></script>
<script type="text/javascript" src="app/incharacterloop.js"></script>
<script type="text/javascript" src="app/player.js"></script>
<script type="text/javascript" src="app/cameratest.js"></script>
<script type="text/javascript" src="app/pathfindingtest.js"></script>
<script type="text/javascript" src="app/onload.js"></script>
<!-- end 'tz_include_js' variable -->
<script type="text/javascript">
// ----------------------------------------
// Embedded code and startup code.
// Supplied by 'tz_startup_code' variable.
// ----------------------------------------
/*global TurbulenzEngine: true */
// Engine startup
window.onload = function ()
{
var appEntry = TurbulenzEngine.onload;
var appShutdown = TurbulenzEngine.onunload;
if (!appEntry) {
window.alert("TurbulenzEngine.onload has not been set");
return;
}
var canvas =
document.getElementById('turbulenz_game_engine_canvas');
var startCanvas = function startCanvasFn()
{
if (canvas.getContext && canvasSupported)
{
TurbulenzEngine = WebGLTurbulenzEngine.create({
canvas: canvas,
fillParent: true
});
if (!TurbulenzEngine) {
window.alert("Failed to init TurbulenzEngine (canvas)");
return;
}
TurbulenzEngine.onload = appEntry;
TurbulenzEngine.onunload = appShutdown;
appEntry()
}
}
var previousOnBeforeUnload = window.onbeforeunload;
window.onbeforeunload = function ()
{
if (TurbulenzEngine.onunload) {
TurbulenzEngine.onunload.call(this);
}
}; // window.beforeunload
startCanvas();
}; // window.onload()
</script>
</body>
</html>