Brand new to canvas and animations. What's the reason this (Fiddle) won't work with a sprite while this other one (Fiddle) works seamlessly with a rectangle fill?
What element am I overlooking here:
ctx.drawImage(img, 10, 10, 13, 50);
It does draw it on the canvas, so what is preventing the object from moving? Is there a need for window.requestAnimationFrame
for such a basic task?