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...
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...