Thats great! I love it. You took the vector math even further. WOW.
So basically use the logarithm to find the distance x,y is from 0,0 and reject anything that is further than 99 pixels away...
Type: Posts; User: Spidey1980
Thats great! I love it. You took the vector math even further. WOW.
So basically use the logarithm to find the distance x,y is from 0,0 and reject anything that is further than 99 pixels away...
What I'm talking about there is that I do not want a star to start close to the edge to immediately move out of range. So that the Stars actually have a little more time on screen, I start them near...
LOL I don't think you can make a circle out of a 2x2 square of pixels. If you Talking about the fillRect in my code, that's the background. Easier than erasing each star, and visually there is no...
Thank you everyone for all your help. Here is the final polished version:
StarScape.java
// starscape.java
// by Jon Crawford
import Star.*;
import java.awt.*;
import java.awt.event.*;...