forked from alexslade/bubbles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.src.html
More file actions
117 lines (107 loc) · 5.06 KB
/
index.src.html
File metadata and controls
117 lines (107 loc) · 5.06 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
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
<!DOCTYPE html5>
<html>
<head>
<meta charset="utf-8">
<title>bubbles games by franz enzenhofer</title>
<style>
body { font-size: 14px;
line-height: 21px;
color: #333;
background: #f6f6f6;
font-family: "Helvetica Neue", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important;
overflow: hidden;
}
canvas {border: 1px solid black}
#intro {
position: absolute;
width: 550px;
bottom: 5%;
left: 50%; /* move the left edge to the center … */
margin-left: -275px; /* … and move it to the left half the box’ width. */
z-index: 9999;
border: 0px solid black;
}
/**
* KEYS.css
*
* A simple stylesheet for rendering beautiful keyboard-style elements.
*
* Author: Michael Hüneburg
* Website: http://michaelhue.com/keyscss
* License: MIT License (see LICENSE.txt)
*/
/* Base style, essential for every key. */
kbd, .key {
display: inline;
display: inline-block;
min-width: 1em;
padding: .2em .3em;
font: normal .85em/1 "Lucida Grande", Lucida, Arial, sans-serif;
text-align: center;
text-decoration: none;
-moz-border-radius: .3em;
-webkit-border-radius: .3em;
border-radius: .3em;
border: none;
cursor: default;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}
kbd[title], .key[title] {
cursor: help;
}
/* Dark style for display on light background. This is the default style. */
kbd.dark, .dark-keys kbd, .key, .key.dark, .dark-keys .key {
background: rgb(80, 80, 80);
background: -moz-linear-gradient(top, rgb(60, 60, 60), rgb(80, 80, 80));
background: -webkit-gradient(linear, left top, left bottom, from(rgb(60, 60, 60)), to(rgb(80, 80, 80)));
color: rgb(250, 250, 250);
text-shadow: -1px -1px 0 rgb(70, 70, 70);
-moz-box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3);
-webkit-box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3);
box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3);
}
/* Light style for display on dark background. */
kbd, kbd.light, .light-keys kbd, .key.light, .light-keys .key {
background: rgb(250, 250, 250);
background: -moz-linear-gradient(top, rgb(210, 210, 210), rgb(255, 255, 255));
background: -webkit-gradient(linear, left top, left bottom, from(rgb(210, 210, 210)), to(rgb(255, 255, 255)));
color: rgb(50, 50, 50);
text-shadow: 0 0 2px rgb(255, 255, 255);
-moz-box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
-webkit-box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
}
</style>
</head>
<body>
<center><div id="gamearea">
</div></center>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/jquery.hotkeys.js"></script>
<script> window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function( callback ){
window.setTimeout(callback, 1000 / 60);
};
})();</script>
<!--<script src="js/lib/init.js" coffee="js/src/init.coffee" min="__REMOVE__"></script>
<script src="js/lib/InGameObjects.js" coffee="js/src/InGameObjects.coffee" min="__REMOVE__"></script>
<script src="js/lib/Player.js" coffee="js/src/Player.coffee" min="__REMOVE__"></script>
<script src="js/lib/Explosion.js" coffee="js/src/Explosion.coffee" min="__REMOVE__"></script>
<script src="js/lib/Bullet.js" coffee="js/src/Bullet.coffee" min="__REMOVE__"></script>
<script src="js/lib/Enemy.js" coffee="js/src/Enemy.coffee" min="__REMOVE__"></script>
<script src="js/lib/runtime.js" coffee="js/src/runtime.coffee" min="__REMOVE__"></script>
<script src="js/lib/helper.js" coffee="js/src/helper.coffee" min="__REMOVE__"></script>
<script src="js/lib/start.js" coffee="js/src/start.coffee" min="__REMOVE__"></script>
<script src="" min="bubbles.js" ></script>-->
<script src="./bubbles.js"></script>
<div id="intro"><center><kbd class="arrow">◀</kbd> <kbd class="arrow">▲</kbd> <kbd class="arrow">▼</kbd > <kbd class="arrow" >▶</kbd> and <kbd> Space </kbd></center></div><script>window.setTimeout(function(){document.getElementById('intro').style.display='none'}, 2500)</script>
<a href="https://github.com/franzenzenhofer/bubbles"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>