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

character Omni directional movment #81

Closed
E-A-N opened this issue Nov 25, 2018 · 4 comments
Closed

character Omni directional movment #81

E-A-N opened this issue Nov 25, 2018 · 4 comments
Assignees

Comments

@E-A-N
Copy link
Collaborator

E-A-N commented Nov 25, 2018

Make sure character move in any direction, may have to make a sub module of gameLoop.js

@E-A-N
Copy link
Collaborator Author

E-A-N commented Nov 25, 2018

wait until I'm finished with #80 for anyone interested in this.

@E-A-N E-A-N self-assigned this Nov 25, 2018
@E-A-N
Copy link
Collaborator Author

E-A-N commented Nov 25, 2018

I'll handle this since I'm already in this estate of the game

@Ricimon
Copy link
Collaborator

Ricimon commented Nov 25, 2018

I'd like to change the implementation here, since right now, the x and y movement are independent of each other, meaning that if the effective character speed is 20 when moving horizontally, it becomes 20*sqrt(2) when moving diagonally. This is also causing the character to not move directly towards the cursor.

The player maximum player speed should become the magnitude of the movement vector, and the movement vector should point directly to the cursor.

@Ricimon Ricimon reopened this Nov 25, 2018
@E-A-N
Copy link
Collaborator Author

E-A-N commented Nov 25, 2018

Sounds good, make a separate ticket for the bug fix @Ricimon

@E-A-N E-A-N closed this as completed Nov 25, 2018
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

No branches or pull requests

2 participants