From 710d17c827681695f3dd23f86ec2e44edda7a308 Mon Sep 17 00:00:00 2001 From: lengstrom Date: Sat, 17 May 2014 10:26:55 -0400 Subject: [PATCH] added canvas --- main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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