CANNONBALL AND SL INGSHOT
Code Explanation
target.img = feathers; Change target img
}
if (by>=ground.sy) {
clearInterval(tid);
}
drawall();
}
<canvas id="canvas" width="1200"
height="600">
Your browser doesn't support the
HTML5 element canvas.
Hold mouse down and drag ball. Releasing
the mouse button will shoot the slingshot.
Slingshot remains at the last position.
Reload page to try again.
Instructions for using mouse