Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: New working theaded non-system-crippling Starscape

    There is a very simple way to filter out the random numbers that are not in a circle.
    Try this:


    do { // get in a circle <<<<<<<<<<<<<<<<<
    myX = Math.random() * 200 -...
  2. Re: New working theaded non-system-crippling Starscape

    This is the square I was talking about:


    starX = Math.random() * 200 - 99;//star starts in a small square
    starY = Math.random() * 200 - 99;//in the center

    Change this logic to chose...
  3. Re: New working theaded non-system-crippling Starscape

    Small comments.
    Several of your variables are defined at the class level but are only used at in one method. They could be defined local to that method.

    if (valid == "false")
    Use the equals()...
Results 1 to 3 of 3