Quote:
|
Originally Posted by projectigi
PHP Code:
// I am bad, I use code tags.
for( this.dy = 0; this.dy < 128; this.i1++ ) // this.i1++? this.dy ++ you mean
{
for( this.dx = 0; this.dx < 128; this.dx++ )
{
this.map[ this.dx ][ this.dy ] = int( random( 1, 3.99 ));
}
}
thats my loop :P
|
Try this tho, I more like it that way;
PHP Code:
for ( i = 0; i < 128 ^ 2; i ++) {
this.dx = i % 128;
this.dy = int( i / 128);
this.map[ this.dx][ this.dy] = int( random( 1, 3.99));
}
Tho it won't work, since 128 ^ 2 > 10.000, and will exceed the loop limit
And make sure this.map is created already as an array.