improve dash behavior when close to walls

This commit is contained in:
Lephenixnoir 2021-06-29 19:42:27 +02:00
parent daeda88eed
commit 70ecd17834
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -369,8 +369,8 @@ int main(void)
}
else {
player->movement.facing = next.facing;
player->movement.vx = fix(0);
player->movement.vy = fix(0);
player->movement.vx = next.vx / 2;
player->movement.vy = next.vy / 2;
player->movement.dash = next.dash;
}