diff --git a/main.js b/main.js index e0d286e..26002f6 100644 --- a/main.js +++ b/main.js @@ -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) { + } \ No newline at end of file