Quote:
Originally Posted by theHAWKER
wow cool, can u explane the script cause it uses alot of random crap. for example:
PHP Code:
for (tx = px; tx < px + 6; tx++) {
|
That does not exist in the script.
BUT:
This checks if a square (4 tiles) are grass ( if not, it stops )
PHP Code:
for (tx = px; tx < px + 2; tx++) {
for (ty = py; ty < py + 2; ty++) {
if (!(tiles[tx, ty] in grasstiles)) return;
}
}
This actually sets the tiles one by one.
PHP Code:
i = 0;
for (tx = px; tx < px + 2; tx++) {
for (ty = py; ty < py + 2; ty++) {
tiles[tx,ty] = bushtiles[i];
i++;
}
}