Jump to content

Technical Implementation: Difference between revisions

Line 60: Line 60:


== Food ==
== Food ==
* Pretty evenly distibuted on earth
* Pretty evenly distributed on earth
* Only visible on zoomed in.
* Only visible on zoomed in.
* TODO Decrease and disappear after some time? New show up. How?
* If dropped, decrease and disappear after some time.
* When looking at area x1,x1 -> x2,y2, maybe it "scans the lines" and the distance to the next food occurrence is relative to the latitude to get it evenly distibuted. (instead of checking a square pattern)
* TODO But how to figure out where to spawn more food and where has it already been done?
* Math pattern having a fixed amount of food and a table with the removed ones (and dropped) and let the patters slowly slide/change in some way...
* Math pattern having a fixed amount of food and a table with the removed ones (and dropped) and let the patters slowly slide/change in some way...
* Where is it calculated?
* Where is it calculated?
** One table with lat L,LL and long L,LL values showing where it has been added
** One table with lat L,LL and long L,LL values showing where it has been added
** One table with actual food items on the map. When picked up, they respawn efter some time, or grow up again.
** One table with actual food items on the map. When picked up, they spawn after some time, or grow up again.
** After som time food disappear at the current location and get new distribution, with overlap. TODO HOW?)
** There are fixed areas where the food appear. (Maybe in the future: Over time the internal pos and location is changed. Two overlapping formulas or just one and a fix time when it is changed to the new. Once a week the removed resources are reset and the new ones appear?)
** There are fixed areas where the food appear. Over time the internal pos and location is changed. Two overlapping formulas or just one and a fix time when it is changed to the new. Once a week the removed resources are reset and the new ones appear?