You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Set a different color for the player-origin line
525
+
// Set a different color for the player-origin line
527
526
g.setStroke(newBasicStroke(1));
528
527
g.setColor(Color.GREEN); // Green for the new line from the player's origin
529
-
g.drawLine(playerAbsX, playerAbsY, getMouse().getX(), getMouse().getY()); // Draw the line from the player's origin to the cursor
528
+
g.drawLine(player.getPlayerAbsX(), player.getPlayerAbsY(), getMouse().getX(), getMouse().getY()); // Draw the line from the player's origin to the cursor
530
529
g.setColor(Color.DARK_GRAY);
531
530
g.drawLine(getWidth()/2+8, getHeight()/2-8, getMouse().getX(), getMouse().getY()); // Draw the line from the player's origin to the cursor
0 commit comments