Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b36c8daad2
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (46 sloc) 0.9 kb
<!DOCTYPE html>
<html lang="en">
<head>
<title>Onslaught2 Prototype</title>
<meta charset="utf-8">
<style>
html,body {
background-color: #000;
color: #fff;
font-family: helvetica, arial, sans-serif;
margin: 0;
padding: 0;
font-size: 12pt;
}
#canvas {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
border: 1px solid #555;
}
</style>
<script src="lib/impact/impact.js"></script>
<script src="lib/game/main.js"></script>
<script>
// Suspend/resume ImpactJS on blur/focus
window.addEventListener("blur", function () {
if (ig.system) {
ig.music.stop();
ig.system.stopRunLoop();
}
}, false);
window.addEventListener("focus", function () {
if (ig.system) {
ig.music.play();
ig.system.startRunLoop();
}
}, false);
</script>
</head>
<body>
<canvas id="canvas"></canvas>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.