TiledMap 显示被裁剪


TiledMap 显示被裁剪

可以修改 CCFastTMXLayer.cpp

1
2
3
4
5
void TMXLayer::draw(Renderer *renderer, const Mat4& transform, uint32_t flags)
方法里面
const Vec2 &anchor = getAnchorPoint();
改成
const Vec2 &anchor = Vec2(0.5,0.5);