Skip to content

Commit

Permalink
jumping!
Browse files Browse the repository at this point in the history
  • Loading branch information
Trystan-Schmits committed Nov 7, 2023
1 parent dcb8427 commit e3b32a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions myScripts/GameScripts/CharacterMovement.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class Movement{
this.directionX = -1;
this.moving = true;
break;
//case this.jump:
// if (this.position.y == 0){
// this.instantY = 80;
// this.directionY = 1;
// }
// break;
case this.jump:
if (this.position.y == 0){
this.instantY = 80;
this.directionY = 1;
}
break;
}
}
handleKeyup(event){
Expand Down

0 comments on commit e3b32a1

Please sign in to comment.