Skip to content

Commit aea59a6

Browse files
author
Jenny Tong
committed
updated for io ext
1 parent 85915d1 commit aea59a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2306
-190
lines changed
33.2 KB
Binary file not shown.
84.5 KB
Binary file not shown.

asteroids/LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2010 Doug McInnes
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

asteroids/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# HTML5-Asteroids
2+
3+
This is just a copy / paste into a slide deck. If you really want to us this sample, go here: https://github.com/firebase/HTML5-Asteroids

asteroids/anchor.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html
2+
$.extend({
3+
getUrlVars: function(){
4+
var vars = [], hash;
5+
var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&');
6+
for(var i = 0; i < hashes.length; i++)
7+
{
8+
hash = hashes[i].split('=');
9+
vars.push(hash[0]);
10+
vars[hash[0]] = hash[1];
11+
}
12+
return vars;
13+
},
14+
getUrlVar: function(name){
15+
return $.getUrlVars()[name];
16+
}
17+
});

asteroids/asteroids.css

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
body {
2+
font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
3+
background: url('bg_tile.jpg');
4+
margin-left: auto;
5+
margin-right: auto;
6+
font-size: 16px;
7+
color: #c0c0c0;
8+
}
9+
10+
h1 {
11+
font-size: 36px;
12+
text-align: left;
13+
font-weight: bold;
14+
font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
15+
color: #c0c0c0;
16+
}
17+
18+
h3 {
19+
font-size: 24px;
20+
font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
21+
color: #c0c0c0;
22+
}
23+
24+
span {
25+
font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
26+
color: #c0c0c0;
27+
}
28+
29+
A:link {text-decoration: none; color: yellow}
30+
A:visited {text-decoration: none; color: yellow}
31+
A:active {text-decoration: none; color: yellow}
32+
A:hover {text-decoration: underline; color: white;}
33+
34+
#asteroids {
35+
}
36+
37+
#game-container {
38+
}
39+
40+
#header-pane {
41+
}
42+
43+
#header-left {
44+
float: left;
45+
}
46+
47+
.footer-col {
48+
float: left;
49+
width: 33%;
50+
}
51+
52+
#header-right {
53+
float: right;
54+
}
55+
56+
#footer-pane {
57+
}
58+
59+
60+
.middle {
61+
display:inline-block;
62+
vertical-align:middle;
63+
}
64+
65+
#game-pane {
66+
}
67+
68+
#leaderboardTable {
69+
overflow: auto;
70+
color: #c0c0c0;
71+
}
72+
73+
#canvas {
74+
position:relative;
75+
border: 8px solid #424547;
76+
margin: 2px;
77+
color: #424547;
78+
background: url('stars.png');
79+
}
80+
81+
.button {
82+
position:absolute;
83+
border:1px solid black;
84+
}
85+
86+
#left-controls {
87+
position:absolute;
88+
left:1px;
89+
bottom:0px;
90+
display:none;
91+
}
92+
93+
#right-controls {
94+
position:absolute;
95+
right:1px;
96+
bottom:0px;
97+
display:none;
98+
}
99+
100+
#up {
101+
width:200px;
102+
height:100px;
103+
bottom:100px;
104+
}
105+
106+
107+
#space {
108+
width:200px;
109+
height:200px;
110+
bottom:0px;
111+
right:0px;
112+
}
113+
114+

asteroids/bg_tile.jpg

12.3 KB
Loading

0 commit comments

Comments
 (0)