infinite jumps
SnesLover22 opened this issue · comments
why is it possible to infinite jump?
Hi!
I just started to play with this repository.
The cheap solution for your problem is to check if the (player.velocity.y == 0) in the case of pressing "w".
Like this:
if (player.velocity.y == 0)
{
player.velocity.y = -4
}
(You can insert this code in the index.js around line 195.)
Hi!
I just started to play with this repository. The cheap solution for your problem is to check if the (player.velocity.y == 0) in the case of pressing "w".
Like this: if (player.velocity.y == 0) { player.velocity.y = -4 } (You can insert this code in the index.js around line 195.)
eslint changed that for me it made more or less lines in each file