Still having quiet a bit of trouble with CCLayerPanZoom.
I’ve used a similarly named class in Cocos2d for my use case and it worked very well.
If anyone can help me understand this Cocos2d-x CCLayer, I could really appreciate it.
My use case is that I have a winsize equal to the iPhone and a tilemap that is 3840x3840.
I would like to use CCLayerPanZoom to allow the player to pan (and zoom) the tilemap.
I have not figured out how to make CCLayerPanZoom only show the 3840x3840 and not scroll outside.
There must be some combination of setContentSize, setPanBoundsRect, setPosition that enable this.
I just cannot figure it out even with hours of experimentation