Skip to content

Conversation

@pajtai
Copy link
Contributor

@pajtai pajtai commented Oct 17, 2012

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?

Adding some code reuse

adding missing paren

adding missing paren
@BorisKozo
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants