sketch.js
//releasing the cannonball on key release

releasing the cannonball on key release
releasing the cannonball on key release
function keyReleased() {
  cannonExplosion.play();
  if (keyCode === DOWN_ARROW) {
    balls[balls.length - 1].shoot();
  }
}
function keyReleased ( ) { cannonExplosion . play ( ) ; if ( keyCode === DOWN_ARROW ) { balls [ balls . length - 1 ] . shoot ( ) ; } }
releasing the cannonball on key release
releasing the cannonball on key release