Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: Jim on July 20, 2009

Title: [MAGNIFICATION] Bacteria
Post by: Jim on July 20, 2009
Here's my entry for the comp.

It's a simulation of bacteria and mold.

The bacteria have a few plans
1. Subdivide!
2. Move away from overcrowded areas
3. Avoid stress by aligning with the local bugs

The mold has one plan
1. Kill bacteria!

Press the spacebar to enter into debug mode.  The red blocks indicate the population density, the green arrows with the blobs on the end indicate which way a bacteria should move to get away from the crowd.  White circles are the mold.

Alt-Enter to go full screen (800x600x60)

Let me know if it's too slow for you and I'll make one with fewer bugs.

Have a lot of fun!

Jim

<edit> fixed the bug which was making it go in debug mode and crash on exit
Title: Re: [MAGNIFICATION] Bacteria
Post by: Shockwave on July 20, 2009
hehe, that's a super idea Jim, I love the luminescence of the bacteria :)
Title: Re: [MAGNIFICATION] Bacteria
Post by: hellfire on July 20, 2009
Very cool!
But for some reason it switches to "debug mode" by its' own after a while and doesn't want to go back to normal...
(WinXP, Geforece8600GTS).
Title: Re: [MAGNIFICATION] Bacteria
Post by: Shockwave on July 20, 2009
Same thing happened here too after about 5 seconds
Title: Re: [MAGNIFICATION] Bacteria
Post by: Jim on July 20, 2009
Bizarre!  That'll be me trashing ram then  :crutches:

Jim
<edit> attached, debug build with no kkrunchy.
<edit2> fixed the bug properly in the first post.
Title: Re: [MAGNIFICATION] Bacteria
Post by: hellfire on July 20, 2009
Works and memory-usage keeps constant :)
Title: Re: [MAGNIFICATION] Bacteria
Post by: benny! on July 20, 2009
Thats an awesome idea and well done, Jim. I like the effect a lot.
Runs fine here with no cpu/memory problems!
Title: Re: [MAGNIFICATION] Bacteria
Post by: slinks on July 22, 2009
Heh, this computer is ancient, the whole thing slowed to a crawl when I wasn't in debug mode. Really cool to watch, maybe needed a few more bacteria though, to help divide the crowd up a little more, and force the bacteria in interesting directions.

Still not sure how you managed to get so many of the things moving about on the screen at once though!
Title: Re: [MAGNIFICATION] Bacteria
Post by: ferris on July 23, 2009
Didn't like the auto debug mode thing I got....but the concept was perfect for the challenge :)

Also it crashed on escape, but it's no big deal.
Title: Re: [MAGNIFICATION] Bacteria
Post by: combatking0 on July 23, 2009
Great stuff! This may have educational properties. Does the mould kill the bacteria on contact?
Title: Re: [MAGNIFICATION] Bacteria
Post by: Jim on July 25, 2009
A demo with educational potential?  Pppt!  Yes it does kill on contact.  Like Domestos.

Jim
PS.  This is also a bump to say I've uploaded a zip with the debug mode bug fixed.
Title: Re: [MAGNIFICATION] Bacteria
Post by: Shockwave on July 25, 2009
This works great now Jim :) Thanks for uploading the final version.
Title: Re: [MAGNIFICATION] Bacteria
Post by: combatking0 on July 25, 2009
Now it looks even better!
Title: Re: [MAGNIFICATION] Bacteria
Post by: Rbz on July 25, 2009
Very good one  :clap:
Title: Re: [MAGNIFICATION] Bacteria
Post by: ferris on July 26, 2009
Much better with the debug mode fix :)
Title: Re: [MAGNIFICATION] Bacteria
Post by: Pixel_Outlaw on July 26, 2009
I really like the organic effect! Complexity from simple rules. Very nice entry Jim!
Title: Re: [MAGNIFICATION] Bacteria
Post by: Way.net on July 26, 2009
Good work Jim definitely a grower ;)
Title: Re: [MAGNIFICATION] Bacteria
Post by: Jim on July 26, 2009
Source code available here
http://www.dbfinteractive.com/forum/index.php/topic,4273.0.html (http://www.dbfinteractive.com/forum/index.php/topic,4273.0.html)

Jim
Title: Re: [MAGNIFICATION] Bacteria
Post by: va!n on July 26, 2009
Wow, that effect looks extreme cool and runs very smooth.... was fun to look a while to the effect.... very nice done and great idea/concept!
Title: Re: [MAGNIFICATION] Bacteria
Post by: Yaloopy on July 27, 2009
Cool entry
+ source
= :)
Title: Re: [MAGNIFICATION] Bacteria
Post by: Buckethead on July 29, 2009
Well done, nice infection ;)
Title: Re: [MAGNIFICATION] Bacteria
Post by: renatorabelo on March 28, 2016
Well done