Skip to content

Commit b27a142

Browse files
committed
fix(RoadKit.js): fix roadkit rotation orientation
1 parent ab33747 commit b27a142

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scripts/roadkits/RoadKit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,13 @@ export default class RoadKit {
406406
// Do nothing if no tile is selected
407407
if (!this.selectedTile) return;
408408

409-
// Rotate anti-clockwise when pressing a
409+
// Rotate when pressing a
410410
if (e.key === "a" || e.key === "A") {
411-
this._rotateTile(e, this.selectedTile, Math.PI / 2);
411+
this._rotateTile(e, this.selectedTile, -Math.PI / 2);
412412
}
413-
// Rotate clockwise when pressing d
413+
// Rotate when pressing d
414414
if (e.key === "d" || e.key === "D") {
415-
this._rotateTile(e, this.selectedTile, -Math.PI / 2);
415+
this._rotateTile(e, this.selectedTile, Math.PI / 2);
416416
}
417417
// Delete the selected tile when pressing Delete
418418
if (e.key === "Delete") {

0 commit comments

Comments
 (0)