summaryrefslogtreecommitdiff
path: root/space-invaders
diff options
context:
space:
mode:
Diffstat (limited to 'space-invaders')
-rw-r--r--space-invaders/index.html15
-rw-r--r--space-invaders/js/main.js1
2 files changed, 16 insertions, 0 deletions
diff --git a/space-invaders/index.html b/space-invaders/index.html
new file mode 100644
index 0000000..aa61329
--- /dev/null
+++ b/space-invaders/index.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>s1nical - Space Invaders</title>
+ </head>
+
+ <body>
+ <script src="/space-invaders/js/main.js"></script>
+ </body>
+
+</html> \ No newline at end of file
diff --git a/space-invaders/js/main.js b/space-invaders/js/main.js
new file mode 100644
index 0000000..1fcfdf3
--- /dev/null
+++ b/space-invaders/js/main.js
@@ -0,0 +1 @@
+for (p = 389, L = l = m = t = 0, c = " _ ", onkeydown = function (e) { 39 == (k = e.which) ? p++ : 37 == k ? p-- : !l & (l = p) }, setInterval('_="<pre>";l&(l-=20)<0&&(l=0);m=(m+=20)>p?b[+new Date%6]:m;for(i=0;i<400;i++){if(i%20==0)_+="\\n";if(~b[n="indexOf"](l))b.splice(b[n](l),1),L+=5,l=0;if(~b[n](p)||p==m)p=n,b=[],c="xxx";_+=i==p?"oIo":~b[n](i)?".#.":i==m&&m?" * ":i==l&&l?" | ":c}document.body.innerHTML=_+="\\nP "+L;t+=o;for(i in b)b[i]+=t%5e3==0?20:t%2e3==0?1:t%1e3==0&&-1', o = 50), b = [], j = 2; 136 > j; j += 14 == j || 94 == j ? 29 : 55 == j ? 27 : 2)b.push(j); \ No newline at end of file