project09 - clean up

This commit is contained in:
2025-11-14 15:23:07 -05:00
parent b1014cd561
commit 762d413f24
3 changed files with 119 additions and 41 deletions

View File

@@ -25,8 +25,9 @@ class Food {
var int gridX, gridY;
// generate random grid coordinates (8x8 pixel grid)
// adjusted for header area (y starts at 33, so grid starts at row 5)
let gridX = Random.between(1, 58) * 8;
let gridY = Random.between(1, 28) * 8;
let gridY = Random.between(5, 28) * 8;
do position.setX(gridX);
do position.setY(gridY);