jaws icon indicating copy to clipboard operation
jaws copied to clipboard

Code reuse and a question

Open pajtai opened this issue 12 years ago • 1 comments

Can reuse existing method logic instead of recreating them in inverse, and is there a reason that item.rect().width and item.rect().height is not taken into account for isRightOf and isBelow? ..... This question extends to forceInside?

So basically, the only reason I noticed the code reuse issue is that I was trying to understand why I had to adjust by the width of the sprite to check if the player was to the right of the viewport but not to the left... So my question is, feature or bug?

pajtai avatar Oct 17 '12 05:10 pajtai

I think that after your change the function checks isIntersects and not isInside

BorisKozo avatar Feb 16 '13 08:02 BorisKozo