This is what I've been working on for roughly 3 months (while also making a website and rebuilding a PC).
This is a simulation of swarm logic, the way swarms/herds/flocks work. Each member of a herd (in this simulation) has simple rules to follow; avoid predators, move towards the average position of the rest of the herd, and try to face the same way as the rest of the herd.
In this case, the predator is that little red dot, and the red haze around it is the distance a herd member has to be before it turns away.
I'm making a better version of this, which will run much faster and have more abilities, but I decided to upload this first version.
I wasn't taught about this at all (however, I did just graduate high school).
I was going to make the predator move around, or have the user control its actions, but the rules I made for the little guys aren't that strong, and it would be very easy for someone to ruin the simulation if they could control the predator. The next version will have automated enemies, so it will be much more exciting.
And yes, everyone thinks that they are sperm. This was a final for one of my classes, and graphics were not a priority. I originally had little squares, but then I had difficulty telling which way they were turning, so I added a tail. The next one will have better graphics.
--
"It's so simple to be wise. Just think of something stupid to say and then don't say it." - Sam Levenson
Hmm. Not sure if this is the bug that we were discussing earlier, but when I left the sim for, oh, I dunno, half an hour? Forty-five minutes? All of the herds disappeared but one... Those dark blue guys are a hardy bunch, I guess. Not sure what would cause this... at all. But you might want to look into it. Other than that, fan-freaking-tastic, just an amazing job, really.
You left it on for 30 minutes just to spite me, didn't you? Anyhow, the error occurs because of the way they travel to the opposite side of the screen when they go off the edge. All it does is send every member of the herd a certain distance back. So if the herd has degraded to the point where it send every member back, but one member has crossed another boundary so thy are all moved again, and then someone else hits another boundary, so they are moved yet again. This happens so fast you don't see it, and the herd vanishes.
And thank you. I hope to have the better version up in a couple months or so.
--
"It's so simple to be wise. Just think of something stupid to say and then don't say it." - Sam Levenson
Not *just* to spite you. I just opened it in a tab and decided to see what happened if I let it go.I'm really impressed at the level of cohesion you were able to obtain with the herds. Oh, and it looked really cool, so I decided not to close it.
Devious Comments
I think we should at least be able to move the predator.
Also, at first, I thought it was a simulation of an ovum and spermatozoa... maybe you should change the graphics.
--
I draw wings because I believe people have the power to fly. I draw them on half-naked girls because I believe I'm a pervert.
I was going to make the predator move around, or have the user control its actions, but the rules I made for the little guys aren't that strong, and it would be very easy for someone to ruin the simulation if they could control the predator. The next version will have automated enemies, so it will be much more exciting.
And yes, everyone thinks that they are sperm. This was a final for one of my classes, and graphics were not a priority. I originally had little squares, but then I had difficulty telling which way they were turning, so I added a tail. The next one will have better graphics.
--
"It's so simple to be wise. Just think of something stupid to say and then don't say it." - Sam Levenson
Good luck with the new version!
And thank you. I hope to have the better version up in a couple months or so.
--
"It's so simple to be wise. Just think of something stupid to say and then don't say it." - Sam Levenson
--
"Ow!" -Amber
"Is your brain okay?" -Math teacher
Previous PageNext Page