Hi again,
Another newbie question.
I was wondering if somebody can help with me with some sample code for an array? I want to make a grid, lets say 3 columns by 3 rows.
in Java i’d do something like this…
int cols = 10;
int rows = 10;
grid = new Cell[cols][rows];
for (int i = 0; i < cols; i++) {
for (int j = 0; j < rows; j++) {
grid[i][j] = new Cell(i*20,j*20,20,20,i+j);
}
}
or something like that.
Am really new to lua ( and processing for that matter)
Any sample code would be appreciated…
Tak!
Sid [import]uid: 41518 topic_id: 7948 reply_id: 307948[/import]