开发者

IPhone-Cocos2d: How to make a CCLayer that reflects another CCLayer

开发者 https://www.devze.com 2023-01-15 07:35 出处:网络
how can i create a new layer, that represents another layer i already have on the screen, just in a different position&scale?

how can i create a new layer, that represents another layer i already have on the screen, just in a different position&scale?

开发者_Go百科

Imagin it something like a minimap, that represents the current map the player is in, just that it is smaller, and appears on the edge of the screen and much smaller.


Someone answered my post on the cocos2d forums.
it can be done using the CCRenderTexture class.

0

精彩评论

暂无评论...
验证码 换一张
取 消