Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 960242

Pages: 1
AnotherTester
Unregistered




Not so random
      #42928 - 01/24/07 08:35 PM

Notice the "tm" and the last 'e' always come in from the right side?
In the 'createSpriteImages' method, the 'top' and 'left' variables should be declared:

// number of sprites along top edge
int top = rand.nextInt(n+1);
// number of remaining sprites at x= 0
int left = rand.nextInt(n+1 - top);

No biggie, but it was bugging me :P


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3827

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5