youvsvirus / youvsvirus-unity

Unity version of the you vs virus game.
GNU General Public License v3.0
1 stars 1 forks source link

Vertical movement is too fast #142

Closed holke closed 4 years ago

holke commented 4 years ago

The vertical movement of the player is faster than horizontal/vertical movement. This is due to the fact that we do not normalize our vector of input directions.

Vector3 move = new Vector3(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"), 0) * speedMultiplier;

We should adapt it, such that if the norm is > 1 it gets normalized. This is a more flexible solution than always normalizing and also allows for the use of controllers with variable input.

holke commented 4 years ago

This will probably also affect the difficulty in the disco level.

At least my strategy currently is to move through the crowd diagonally as fast as possible.

holke commented 4 years ago

We could also adjust the base speed to be a bit faster, such that the new regulated moving speed is as fast as currently moving diagonally is.