我正在开发一个 android 2D 游戏,其中涉及无限运行和跳跃到很高的高度。我正在尝试实现一个修改后的哈希网格来回收它的单元格,但是我越深入它,我就越觉得它会很慢。我还使用哈希网格来参考要渲染和生成的内容。我的问题是,是否有任何系统可以满足我的需求?或者也许是一些有效使用网格的技巧?
问问题
161 次
1 回答
1
You might want to have a look to Box2D I had to take care of a game with some collisions in the past, but it was in Java so I could work perfectly with awt.geom library, which is not available in Android.
Another approach would be to work with Rect and detecting collisions with "contains" and "intersect".
于 2012-08-11T09:10:14.273 回答