0

i'm new with canvas. m a student. currently developing a Runner Game in canvas.
i have the function jump(), that called when mousedown() event occuers,
function jump(){
img= new Image();
//is_jump=1;
h.clearRect(20,430,170,250);
img.onload= function(){
//h.drawImage(img,mx,my,190,280,120,41...