Cocos2D-iPhone-Extensions v0.2 released.

Hello!

I’m happy to announce that cocos2d-iphone-extensions v0.2 is just released.

You can grab your copy here: http://dl.dropbox.com/u/1765875/cocos2d-iphone-extensions-v0.2.zip
Or you can use git: https://github.com/cocos2d/cocos2d-iphone-extensions/tree/master
Video Overview:

Thank you everyone for your suggestions & pull requests!

CHANGELOG for 0.2 (09-November-2011):

  • New Extension: CCLayerPanZoom (iOS Only)
  • New Extension: TMXGenerator.
  • CCSlider: Uses KVO instead of delegate property.
  • ССScrollLayer: Added new property: marginOffset.
  • CCScrollLayer: Restore blending functions properly.
  • CCScrollLayer: minor fixes & additions:
    1. Assign delegate instead of retain.
    2. Avoid double call of scrollLayer:scrolledToPageNumber: (Issue #82).
    3. Call scrollLayer:scrolledToPageNumber: on Mac, using wheel to scroll.
    4. Added ability to change colors of pages indicator (Issues #84, #87).
  • CCMenuAdvanced fixes:
    1. Bottom to top align bug – menuItem outside of menu bounds (Issue #75).
    2. Inverted X scroll in Mac with wheel.
  • Analyzer issues fixes in CCBigImage & CCMenuAdvanced.
  • Warnings fixes & project modernization.

FULL CHANGELOG: 
https://github.com/cocos2d/cocos2d-iphone-extensions/blob/master/CHANGELOG

Our Glorious AUTHORS:
https://github.com/cocos2d/cocos2d-iphone-extensions/blob/master/AUTHORS.cocos2d-extensions

Cheers!

12 Responses to “Cocos2D-iPhone-Extensions v0.2 released.”


  • Thank you!
    It would be great if you add much more UI controls, CCLabel, CCButton, CCTextField etc.

  • PanZoom looks great!

  • Thanks for the update.

    I didn’t know CCScroller got updated. Got the new version and it worked painlessly! Love the addition of “movetoPage” method.

  • you guys are great!

  • could you provide any sample for adding tiled map (.tmx) to panZoomLayer, instead of just a sprite background?
    i tried to add the map to panZoomLayer, but can’t zoom in/out…

    [[CCDirector sharedDirector] setProjection:kCCDirectorProjection2D];

    _panZoomLayer = [[CCLayerPanZoom node] retain];
    [self addChild: _panZoomLayer];
    _panZoomLayer.delegate = self;

    self.tileMap = [CCTMXTiledMap tiledMapWithTMXFile:@"TileMap.tmx"];
    self.background = [_tileMap layerNamed:@"Background"];
    self.background.scale = CC_CONTENT_SCALE_FACTOR();

    [_panZoomLayer addChild:_tileMap z:0 tag:900];
    _panZoomLayer.mode = kCCLayerPanZoomModeSheet;
    _panZoomLayer.rubberEffectRatio = YES;
    [self updateForScreenReshape];

  • i found the event triggers like:
    - clickedAtPoint
    - touchPositionUpdated
    - touchMoveBeganAtPosition

    are really useful, but what about touchEndPosition / touchEnd response?

  • Just downloaded it and installed using “./install-templates.sh -u -f”.
    As I suppose files “CCLayerPanZoom.h & CCLayerPanZoom.m” should already be in new created project?
    Or I need to add “CCLayerPanZoom.h & CCLayerPanZoom.m” in my project manually?

  • @melvinng05: Make sure your app is multi-touch enabled, otherwise you will only be able to pan.

  • @JLo: Thanks, after i add this [glView setMultipleTouchEnabled:YES]; to AppDelegate.m, able to zoom already :) but i still encounter problem with add tiled map, deploy to iPad device will see the BLACK LINE even i added this [[CCDirector sharedDirector] setProjection:kCCDirectorProjection2D]; :( hope can have sample code for adding tiled map using CCLayerPanZoom. Thanks!

  • CCLayerPanZoom seems to freak out if you use a panBoundsRect larger than the screen size. Is this intended or am I using it incorrectly? I was hoping to be able to pan on a larger image.

  • I tried setting panBoundsRect to {9000,3000}. It doesn’t work and it scales my layer to 18.xxf whenever I try to move.

  • Thank you for all your effort!
    You guy did a great work!
    But I’m wondering if is there any plan to support cocos2d 2.0?

    Thanks again!
    Trung

Leave a Reply




Social Widgets powered by AB-WebLog.com.