Rinum / OpenAnt

Open Ant! Join us at reddit.com/r/openant and http://webchat.freenode.net/ #openant
http://openant.com
102 stars 20 forks source link

Food Generation #15

Closed cgreer closed 13 years ago

cgreer commented 13 years ago

I added a food generation to the Map Class

The sprite is very basic (have to do work at work now...) but it works. Right now it is set to regenerate more food at a random location if there is < 20 pieces of food. I'd like to later add a probability based addition so that a food source generates around a fixed location.

Also it only adds it to the initial section of the map. I honestly am not sure how the map works quite yet so I can change that later...