Java: What is a good data structure for storing a coordinate map for an infinite game world?

前端 未结 11 1315
心在旅途
心在旅途 2020-12-23 11:35

I am used to coding in PHP but I am not really proficient with Java and this has been a problem for some time now. I expect it to be a fairly easy solution, however I cannot

11条回答
  •  悲哀的现实
    2020-12-23 12:00

    you could try a QuadTree (nice example here: http://www.mikechambers.com/blog/2011/03/21/javascript-quadtree-implementation/ )

提交回复
热议问题