Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleciondolo authored May 15, 2024
1 parent 4f27d55 commit 41a878c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Main.prototype = {
update: function() {

this.game.physics.arcade.collide(this.player, this.floor);
this.game.physics.arcade.collide(this.player, this.boxes, this.gameOver, null, this);
this.game.physics.arcade.collide(this.player, this.boxes, this.incrementScore, null, this);

var onTheGround = this.player.body.touching.down;

Expand Down

0 comments on commit 41a878c

Please sign in to comment.