From 2a56b01c0b49df29c921e9ba73508a9c440d3465 Mon Sep 17 00:00:00 2001 From: lengstrom Date: Fri, 23 May 2014 16:50:18 -0400 Subject: [PATCH] added bouncing anim v2 --- js/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 9cdedbe..2dc7730 100644 --- a/js/main.js +++ b/js/main.js @@ -1,3 +1,7 @@ +$(document).ready(function(){ + debugger; +}); + var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); canvas.originalHeight = canvas.height; @@ -230,7 +234,7 @@ function getStepDY(t, b, c, d) { } else { return c*(7.5625*(t-=(2.625/2.75))*t + 0.984375) + b; } -}; +} function animLoop() { if (gameState == 1) { @@ -238,7 +242,7 @@ function animLoop() { update(); render(); checkGameOver(); - } + } else if (gameState === 0) { clearGameBoard(); showModal('Start!', 'Press enter to start!');