added canvas

This commit is contained in:
meadowstream 2014-05-17 10:26:55 -04:00
parent 9d354fb384
commit 6ada98b1bc

View file

@ -1,4 +1,6 @@
// main thing here
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
@ -16,6 +18,9 @@ window.requestAnimFrame = (function(){
function render() {
// game code
requestAnimFrame(animloop);
}
function block(lane) {
}