Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly enhancing base functionality + implementing press targeting. #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jdrich
Copy link

@jdrich jdrich commented Feb 27, 2018

I made a few perhaps controversial changes:

  • Added nuget + MonoGame.Extended.Input dependencies, updated MonoGame version.
  • Included SDL.dll references, which might be wrong/invalid.
  • Broke (slightly) encapsulation of the Renderable to make it easier to traverse.

Also introduced two classes, PressableContainer and PressableSprite, to handle click targetting. I made a few assumptions in the implementation, the most important being that the Container object exists in some capacity as a 2d camera object for the scene. The other being that no one will be doing any viewport shenanigans. I haven't fully tested all viewport configurations. The implementation will be mostly performant unless the sprite tree is very deep (n>50).

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.

1 participant