Whoops :')
This commit is contained in:
parent
94abfe82a9
commit
7bcfbc9af6
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue