Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在游戏背景中添加一个网格。它应该是可缩放的,而且我应该能够知道我现在在哪个正方形上绘制另一个对象。我需要这样的东西:
这样做的最常见和正确的方法是什么?
在 CCLayerPanZoom 中使用 tileMap(CCTMXTiledMap)。它易于跟踪网格单击并易于缩放。