forked from ellisonleao/clumsy-bird
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
97 lines (82 loc) · 3.43 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Flippy Cat</title>
<link rel="apple-touch-icon-precomposed" href="data/img/touch-icon-iphone.png"/>
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="data/img/touch-icon-iphone-retina.png"/>
<link rel="shortcut icon" href="data/img/favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<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">
<meta name="apple-mobile-web-app-title" content="Flippy Cat">
<meta charset="UTF-8" />
<meta name="description" content="Flippy Cat - A Flappy Bird clone using MelonJS"/>
<meta name="keywords" content="flappybird, flappy, bird, game, html5, melonjs,clone"/>
<meta name="robots" content="index, follow">
<meta property="og:image" content="http://t4nuj.github.io/clumsy-bird/data/img/bg.png" />
<meta property="og:title" content="Flippy Cat- A Flappy Bird clone using MelonJS"/>
<meta property="og:url" content="http://t4nuj.github.io/clumsy-bird/"/>
<meta property="og:site_name" content="Flippy Cat - MelonJS"/>
<!-- Humans -->
<link rel="author" href="humans.txt" />
<!--
<link rel="stylesheet" type="text/css" href="addtohomescreen.css">
<script src="js/addtohomescreen.min.js"></script>
-->
</head>
<body>
<!-- Canvas placeholder -->
<div id="screen"></div>
<div id="credit_container">
<div id="name">
<a href="http://www.github.com/t4nuj"><p class="credits" align="left">Created By Tanuj Bhatia</p></a>
</div>
<div id="gh_hosting">
<p class="credits">
<a href="http://www.github.com/t4nuj/clumsy-bird">
Hosted With <span class="red">❤</span> on Github </a>
<br><br>
A flappy bird clone with random gravity flips.
</p>
</div>
<div id="additional_credits">
<p class="credits">
<a href="https://twitter.com/prguitarman">
Nyan cat original art by : Christopher Torres (@prguitarman)
</a>
<br><br>
<a href="https://www.youtube.com/user/Bunnymajs">
Music Originally by : Bunnymajs @ youtube.com
</a></p>
</div>
</div>
<!-- melonJS Library -->
<script type="text/javascript" src="lib/melonJS-2.0.2-min.js"></script>
<script type="text/javascript" src="lib/plugins/debug/debugPanel.js"></script>
<script type="text/javascript" src="build/clumsy-min.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>
</body>
</html>