ok so i have been trying to make smth that would make it so sprites that were made by loops could have stats on each individual sprite (like for example value)
function drawGridsRow(y) {
var x = 25;
for (var i = 0; i < 8; i++) {
createGrids(x, y);
x += 50;
}
}
function drawGrids() {
var y = 125;
for (var i = 0; i < 6; i++) {
drawGridsRow(y);
y += 50;
}
}