cocos2d                cocos2d 1.0.0 rc

xionchannel software
twitter: @ajinotataki

email: xionchannel@gmail.com


Solid Dots, ElectroMaster
CCSprite CCNode


 OpenGL                     draw




 -(void) reorderChild:(CCNode*) child z:(int)z
CCSprite         vertexZ


 OpenGL                           vertexZ
 Z


             Z


 [[CCDirector sharedDirector]
   setProjection:kCCDirectorProjection2D];


 Z
 EAGLView *glView = [EAGLView viewWithFrame(
  depthFormat:GL_DEPTH_COMPONENT16_OES];
-(void)draw {
  glEnable(GL_ALPHA_TEST);
  glAlphaFunc(GL_GREATER, 0.0f);
  [super draw];
  glDisable(GL_ALPHA_TEST);
}


CCSpriteBatchNode
CCSprite draw
CCLayer




CGSize size = [[CCDirector sharedDirector] winSize];
CGPoint scrollPosition =
     ccp((int)(size.width/2 -player.position.x),
        (int)(size.height/2 -player.position.y));
CCSprite       reorderChild


CCTMXLayer   vertexZ


 Tiled
Tiled             Z   cc_vertexz



                                   Z


  automatic
              Y
  1           Z
CCAction


CCAction   CCNode
                    →
CCAction


 CCMoveTo, CCMoveBy



 CCRotateTo, CCRotateBy



 CCFadeIn, CCFadeOut, CCFadeTo




 http://www.itassist.info/modules/blog/archives/489
CCAction


 CCRepeatForever
     CCAction


 CCSequence
           CCAction


 CCSpawn
           CCAction


 CCDelayTime
CCAction


 CCCallFunc, CCCallFuncN, CCCallFuncND,
 CCCallFuncO
CCCallFunc



CCCallFuncN
     sender


CCCallFuncND
     sender (void*)


CCCallFuncO
     sender (id)
(                     +
        )→   →



(            100pts        +
                      )→
(   +                          )
cocos2d

Cocos2d実践編 1.0.0rc