HTML and CSS Reference
In-Depth Information
Code
Explanation
verticalvel1 = verticalvel2;
cball.moveit(dx,dy);
var bx = cball.sx;
var by = cball.sy;
if ((bx>=target.sx)&&(bx<=(target
.sx+target.swidth))&&
(by>=target.sy)&&(by<=(target
.sy+target.sheight))) {
clearInterval(tid);
everything.splice
(targetindex,1,[htarget,false]);
Remove target and insert htarget
everything.splice
(ballindex,1);
Remove the ball
drawall();
}
if (by>=ground.sy) {
clearInterval(tid);
}
drawall();
}
</script>
</head>
<body onLoad="init();">
Search WWH ::




Custom Search