forked from kenamick/psiral
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (74 loc) · 2.47 KB
/
index.html
File metadata and controls
79 lines (74 loc) · 2.47 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Psiral - Javascript/HTML5 game (Game-Off 2013)</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css">
</head>
<body>
<!-- Canvas placeholder -->
<div id="screen">
<div id="top"></div>
</div>
<div id="bottom"></div>
<!-- Versioning -->
<script type="text/javascript">
var _timestamp = (new Date()).getTime();
var _version = {
buildnumber:_timestamp,
};
</script>
<!-- Libraries -->
<script src="vendor/underscore-min.js"></script>
<script src="vendor/howler.min.js"></script>
<script src="vendor/melonJS-0.9.11-min.js"></script>
<script src="vendor/plugins/debugPanel.js"></script>
<script src="vendor/plugins/fndelay.js"></script>
<script src="vendor/plugins/howlerAudio.js"></script>
<!-- Game -->
<script src="js/globals.js"></script>
<script src="js/game.js"></script>
<script src="js/resources.js"></script>
<script src="js/map.js"></script>
<script src="js/gamemaster.js"></script>
<script src="js/l10n.js"></script>
<!-- Scenes -->
<script src="js/scenes/splash.js"></script>
<script src="js/scenes/menu.js"></script>
<script src="js/scenes/menu_hud.js"></script>
<script src="js/scenes/play.js"></script>
<script src="js/scenes/play_hud.js"></script>
<!-- Objects -->
<script src="js/entities/wizards.js"></script>
<script src="js/entities/board.js"></script>
<script src="js/entities/gfx.js"></script>
<!-- Bootstrap & Mobile optimization tricks -->
<script type="text/javascript">
window.onReady(function onReady() {
game.onload();
// Mobile browser hacks
if (me.device.isMobile && !navigator.isCocoonJS) {
// Prevent the webview from moving on a swipe
window.document.addEventListener("touchmove", function (e) {
e.preventDefault();
window.scroll(0, 0);
return false;
}, false);
// Scroll away mobile GUI
(function () {
window.scrollTo(0, 1);
me.video.onresize(null);
}).defer();
me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) {
window.scrollTo(0, 1);
});
}
});
</script>
<!--URCHIN-->
</body>
</html>