Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Cocos2d実践編 1.0.0rc

5,683 views

Published on

Published in: Technology
  • Login to see the comments

Cocos2d実践編 1.0.0rc

  1. 1. cocos2d cocos2d 1.0.0 rcxionchannel software
  2. 2. twitter: @ajinotatakiemail: xionchannel@gmail.comSolid Dots, ElectroMaster
  3. 3. CCSprite CCNode OpenGL draw -(void) reorderChild:(CCNode*) child z:(int)z
  4. 4. CCSprite vertexZ OpenGL vertexZ Z Z [[CCDirector sharedDirector] setProjection:kCCDirectorProjection2D]; Z EAGLView *glView = [EAGLView viewWithFrame( depthFormat:GL_DEPTH_COMPONENT16_OES];
  5. 5. -(void)draw { glEnable(GL_ALPHA_TEST); glAlphaFunc(GL_GREATER, 0.0f); [super draw]; glDisable(GL_ALPHA_TEST);}CCSpriteBatchNodeCCSprite draw
  6. 6. CCLayerCGSize size = [[CCDirector sharedDirector] winSize];CGPoint scrollPosition = ccp((int)(size.width/2 -player.position.x), (int)(size.height/2 -player.position.y));
  7. 7. CCSprite reorderChildCCTMXLayer vertexZ Tiled
  8. 8. Tiled Z cc_vertexz Z automatic Y 1 Z
  9. 9. CCActionCCAction CCNode →
  10. 10. CCAction CCMoveTo, CCMoveBy CCRotateTo, CCRotateBy CCFadeIn, CCFadeOut, CCFadeTo http://www.itassist.info/modules/blog/archives/489
  11. 11. CCAction CCRepeatForever CCAction CCSequence CCAction CCSpawn CCAction CCDelayTime
  12. 12. CCAction CCCallFunc, CCCallFuncN, CCCallFuncND, CCCallFuncO
  13. 13. CCCallFuncCCCallFuncN senderCCCallFuncND sender (void*)CCCallFuncO sender (id)
  14. 14. ( + )→ →( 100pts + )→( + )
  15. 15. cocos2d

×