LearnTeachCode / LTC_game_jam

Learn Teach Code group game jam November 2018
6 stars 8 forks source link

character Omni directional movment #81

Closed E-A-N closed 5 years ago

E-A-N commented 5 years ago

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

E-A-N commented 5 years ago

wait until I'm finished with https://github.com/michellelynne/LTC_game_jam/issues/80 for anyone interested in this.

E-A-N commented 5 years ago

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

Ricimon commented 5 years ago

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.

E-A-N commented 5 years ago

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