Knockback should move you away from the source of the damage, but it currently moves you in the opposite direction you are facing.
To do this, findNearestCollision() within the game engine will need to be changed so that it also returns if the collision came from the left or right. That direction can then be passed as a second optional parameter for the readInput in Knight.
Not yet, it's currently unimplemented. The goal of this issue is to knock you back from the damage source, not the opposite of the direction that you are facing.
Knockback should move you away from the source of the damage, but it currently moves you in the opposite direction you are facing.
To do this, findNearestCollision() within the game engine will need to be changed so that it also returns if the collision came from the left or right. That direction can then be passed as a second optional parameter for the readInput in Knight.