227k views
7 votes
Looking at the code below, what happens when this onHit function runs?

sjs.onHit("laser",["platform","jump_pad", "powerUp","score","flag"], function(x,y){
sjs.bounceOff(x,y);
});

A) The laser will only bounce off the flag.
B) The laser will only bounce off the platform.
C) The laser will get destroyed.
D) The laser will bounce off each object listed in the array.

2 Answers

5 votes
The answer is b ......
User Halkujabra
by
4.0k points
5 votes
B dxjdbxhxbxbcjxxnxhcbfnc
User Bling
by
3.1k points