l3mpire / lemverse

The first-ever coworking metaverse
https://app.lemverse.com
GNU Affero General Public License v3.0
149 stars 43 forks source link

Add player controls with mouse #237

Closed PuKoren closed 6 months ago

PuKoren commented 7 months ago

A proposal for https://github.com/l3mpire/lemverse/issues/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 commented 6 months ago

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