Skip to content

Commit

Permalink
move magnifier more right
Browse files Browse the repository at this point in the history
  • Loading branch information
rnickles committed Aug 17, 2024
1 parent de02dc1 commit 0ec7723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/acceptUserInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function acceptUserInput(engine, render, gameState) {
magnifierCanvas.style.display = 'block';
showMagnifier = true;
// Position the magnifier to the right and above the cursor
const offsetX = 50; // Offset distance from the cursor
const offsetX = 100; // Offset distance from the cursor
const offsetY = -100;
magnifierCanvas.style.left = (mousePosition.x + offsetX) + 'px';
magnifierCanvas.style.top = (mousePosition.y + offsetY) + 'px';
Expand All @@ -102,7 +102,7 @@ export function acceptUserInput(engine, render, gameState) {
Matter.Composite.remove(engine.world, temporaryPlatform.bod);
temporaryPlatform = new Platform(startX, startY, endX, endY, engine, 'gray', true);
// Position the magnifier to the right of the cursor
const offsetX = 50; // Offset distance from the cursor
const offsetX = 100; // Offset distance from the cursor
const offsetY = -100;
magnifierCanvas.style.left = (mousePosition.x + offsetX) + 'px';
magnifierCanvas.style.top = (mousePosition.y + offsetY) + 'px';
Expand Down

0 comments on commit 0ec7723

Please sign in to comment.