Displaying 1 result from an estimated 1 matches for "dothebouncestuff".
2006 Feb 28
3
EventPublisher (contribution)
...e.bind(this),
true );
},
ballBounce: function(args)
{
// assuming arguments are passed (the 2nd fireEvent is used from
the 1st example)...
// special physics... red balls bounce twice as high :-)
if (args.ball.color == "red")
this.doTheBounceStuff(args.ball, args.howHigh * 2);
else
this.doTheBounceStuff(args.ball, args.howHigh);
},
doTheBounceStuff: function(ball, howHigh)
{
...push back on the ball to make a bunch of dead physicists
proud...
}
};
Please let me know if you have any questions...