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

Extended log and alternative navigation. #4

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

Conversation

RedHatter
Copy link

These changes add four features. The first is an alternative form of character navigation, a joystick. Long click on the center to reposition the button. You should probably make a new graphic that fits better with the rest of the interface.

The second is an extended log. Clicking on the log text will open a scrollable window to view all logs for the current level.

The third adds a button to the toolbar that travels to the closest unvisited area that the hero knows how to get to.

The fourth is another alternative navigation 'continuous goto'. Clicking and holding will move the hero toward that direction (not necessarily a valid cell), and once activated dragging will change that direction. Basically it plays fallow the finger.

@RedHatter RedHatter changed the title Extended log and joystick navigation. Extended log and alternative navigation. Aug 7, 2014
@dustinfreeman dustinfreeman mentioned this pull request Aug 15, 2014
float y = Math.abs( touch.current.y - hero.y );
float x2 = 0, y2 = 0;
if (Math.abs(x) > Math.abs(y)) {
x2 += size;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same for if and else.

@pserwylo
Copy link

Thanks for this change. I find myself using the "closest unvisited area" button frequently (as someone who only recently started playing). It works nicely, and I haven't experienced any bugs with it.

However the main reason I tested this was for the directional navigation. Unfortunately I found it difficult to use, because the hit area for the left/right/up/down buttons seemed too small. I don't think I have particularly fat fingers and I find it hard to use. I additionally found it difficult to move the joystick. Finally, I haven't used the continuous goto feature, so can't comment as to that's goodness or badness.

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.

3 participants