1
0
Fork 0

Whoops :')

This commit is contained in:
Atridad Lahiji 2025-02-13 23:56:58 -06:00
parent 94abfe82a9
commit 7bcfbc9af6
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438

View file

@ -7,7 +7,6 @@ export const generateTargets = () => {
// Calculate width segments to distribute targets evenly
const segmentWidth = (CONSTANTS.VIRTUAL_CANVAS_SIZE - PADDING * 2) / Math.sqrt(CONSTANTS.TARGET_COUNT);
const numColumns = Math.ceil(Math.sqrt(CONSTANTS.TARGET_COUNT));
const numRows = Math.ceil(CONSTANTS.TARGET_COUNT / numColumns);
for (let i = 0; i < CONSTANTS.TARGET_COUNT; i++) {
let validPosition = false;