Thread: keyDown check?
View Single Post
  #16  
Old 09-18-2006, 04:17 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Quote:
Originally Posted by projectigi
PHP Code:
// I am bad, I use code tags.
for( this.dy 0this.dy 128this.i1++ ) // this.i1++? this.dy ++ you mean
  
{
  for( 
this.dx 0this.dx 128this.dx++ )
    {
    
this.mapthis.dx ][ this.dy ] = intrandom13.99 ));
    }
  } 
thats my loop :P
Try this tho, I more like it that way;
PHP Code:
for ( 0128 2++) {
  
this.dx 128;
  
this.dy int128);
  
this.mapthis.dx][ this.dy] = intrandom13.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.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote