Cocos2d実践編 1.0.0rc

5,340 views

Published on

Published in: Technology
0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,340
On SlideShare
0
From Embeds
0
Number of Embeds
184
Actions
Shares
0
Downloads
34
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • 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

    ×