Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chiruzzimarco committed Nov 8, 2024
1 parent 2fa2039 commit 26b3b23
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions dlgr/griduniverse/static/scripts/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -903,10 +903,12 @@
}

function onItemConsumed(msg) {
console.log("Item consumed by player " + msg.player_id + ": " + msg.player_item.id);
console.log(
"Item consumed by player " + msg.player_id + ": " + msg.player_item.id,
);
pixels.canvas.style.border = "5px solid " + msg.player_color;
setTimeout(() => {
pixels.canvas.style.border = "5px solid #000000"
pixels.canvas.style.border = "5px solid #000000";
}, 1500);
}

Expand Down Expand Up @@ -1297,7 +1299,7 @@
stop: gameOverHandler(player_id),
wall_built: addWall,
move_rejection: onMoveRejected,
item_consumed: onItemConsumed
item_consumed: onItemConsumed,
},
};
const socket = new socketlib.GUSocket(socketSettings);
Expand Down
8 changes: 5 additions & 3 deletions dlgr/griduniverse/static/scripts/dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dlgr/griduniverse/static/scripts/dist/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dlgr/griduniverse/static/scripts/dist/difi.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dlgr/griduniverse/static/scripts/dist/questionnaire.js.map

Large diffs are not rendered by default.

0 comments on commit 26b3b23

Please sign in to comment.