Skip to content

Commit

Permalink
Merge pull request #7 from uhmarlon/main
Browse files Browse the repository at this point in the history
fix raccon pos
  • Loading branch information
cramosk authored Oct 27, 2023
2 parents 3f3cb3b + 6aaded9 commit 0f29a4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Teams/purple_saints/src/second.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ async function sendImageToServer(socket: Socket, imagePath: string) {
const ctx = canvas.getContext('2d');
ctx.drawImage(image, 0, 0, image.width, image.height);

// Randomize starting X and Y based on the given ENV and the image size
const startX = Math.floor(Math.random() * (MAX_X - image.width));
const startY = Math.floor(Math.random() * (MAX_Y - image.height));
const startX = MAX_X - image.width;
const startY = MAX_Y - image.height;

let output: string = '';
for (let x = 0; x < image.width; x++) {
Expand Down

0 comments on commit 0f29a4f

Please sign in to comment.