Skip to content

Commit

Permalink
Fix backflip not going back when facing left
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 8, 2024
1 parent e1e4d20 commit 93834d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/playable/worm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Worm extends PlayableEntity {

onBackflip() {
this.state = WormState.InMotion;
this.body.applyImpulse({x: this.facingRight ? -3 : -3, y: -13}, true);
this.body.applyImpulse({x: this.facingRight ? -3 : 3, y: -13}, true);
}


Expand Down

0 comments on commit 93834d8

Please sign in to comment.