Skip to content

Commit

Permalink
fix: highlight in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbots committed Mar 29, 2024
1 parent 695830a commit dc1a028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bot/createBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ const createBot = (game, { config, settings }, winSwitch, state) => {
if(pos && process.env.NODE_ENV == `dev`) {
screen.config.highlightOpacity = 1;
screen.config.highlightDurationMs = 250;
const highlightRegion = new Region(screenSize.x + (pos.x - 10), screenSize.y + (pos.y - 10), 10, 10);
const highlightRegion = new Region(screenSize.x + (pos.x - 5), screenSize.y + (pos.y - 5), 10, 10);
await screen.highlight(highlightRegion);
}

Expand Down

0 comments on commit dc1a028

Please sign in to comment.