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

Add player controls with mouse #237

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

PuKoren
Copy link
Contributor

@PuKoren PuKoren commented Feb 9, 2024

A proposal for #129.

I'm not sure if that was the original idea as there is multiple ways to use the mouse to move a character, so here is one:

While maintaining the mouse click button, the player will be steered into the direction of the pointer, relative to the controlled character. Releasing the mouse button stops the movement. It can also be used along with the keyboard controls, to allow even more use-cases.

Unfortunately my screencast don't record the pointer, but you can still feel the movement on this video:

Screencast.from.2024-02-09.11-20-22.webm

What do you think?

@Donorhan
Copy link
Contributor

Thanks for your contribution PuKoren, I think this will please users who are less comfortable with keyboard arrows 🙏

@Donorhan Donorhan merged commit 4924e80 into l3mpire:master Mar 22, 2024
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