Posted: Sun Jun 15, 2008 9:02 pm Post subject: Picture Particler.
Just playing around with some particle stuff. Not perfect I know but meh...I'm open to any and all criticisms to criticize away! I'm also open to compliments but I doubt there will be much...
I commented it as best I could and feel free to change the CELLSIZE variable. I prefer 2. Particle1 is main class.
Posted: Mon Jun 16, 2008 12:31 am Post subject: RE:Picture Particler.
Interesting idea... at first I was confused why it was drawing images instead of particles. Most importantly, though, implement WindowListener! Better yet, use Java 1.5 or 1.6 and use setDefaultCloseOperation().
Reality Check
Posted: Mon Jun 16, 2008 12:49 am Post subject: Re: Picture Particler.
I had commented out a few different methods for getting the particles and their motions. I liked this one the best. For example, the velocities for the particle would be set directly to the components instead of gradually. This took away the fluidness but on the other hand gave it a nice tail of particle as you move as opposed to this way where it breaks apart quickly. Another thing I had was I never allowed the velocity to be 0. I simply gave it a 1 pixel speed once it entered the picture zone and it gave it a cool staticy look. Ultimately I went for the cleaner look.
Oh and thanks for the suggestion I was going to implement window listener. I've been lazy to do so. Any other suggestions?
rto
Posted: Wed Dec 17, 2008 9:08 am Post subject: RE:Picture Particler.
Hmm this might have just been me, but when i ran this program IT would not close .. nothing i did would close it
I actually had to reboot my compuer -.-
Vermette
Posted: Wed Dec 17, 2008 2:52 pm Post subject: RE:Picture Particler.
Ditto on implementing WindowListener, or more preferable extending JFrame instead and using setDefaultCloseOperation(EXIT_ON_CLOSE)
Insectoid
Posted: Wed Dec 17, 2008 3:14 pm Post subject: RE:Picture Particler.
If your on windows, you can just go to task manager, find the process/task and close it. Of course coding it to end properly is better.
S_Grimm
Posted: Wed Dec 17, 2008 7:49 pm Post subject: Re: RE:Picture Particler.
insectoid @ Wed Dec 17, 2008 3:14 pm wrote:
If your on windows, you can just go to task manager, find the process/task and close it. Of course coding it to end properly is better.
I ran it on a school computer. So did rto. We have no access to Task Manager.