SpriteBuilder 学习笔记五

摘要: Chapter 6 Menus & Popovers现在,你有了一个level和游戏元素可以原则上让游戏可以玩了。再添加更多levels或者游戏元素之前,更应该添加一些menus。saws应该杀死player,但是这需要一个Game over menu让player重新开始或者退出level。你现在... 阅读全文
posted @ 2015-02-26 14:41 SomeBod_Y 阅读(439) 评论(0) 推荐(0) 编辑

SpriteBuilder 学习笔记四

摘要: ---恢复内容开始---Chapter 5Timelines & TriggersSpriteBuilder的一个主要特性就是可以用关键帧创建Timeline动画。甚至可以通过提供合适的碰撞属性让静态physics body也能产生动画效果。这一章会通过使用CCBAnimationManager类创... 阅读全文
posted @ 2015-02-15 23:55 SomeBod_Y 阅读(716) 评论(0) 推荐(0) 编辑

SpriteBuilder 学习笔记三

摘要: Chapter 4 Physics & CollisionsPlayer Physics任何node想要移动或者互动的像物理对象时,必须成为CCPhysicsNode的子类。Enabling Physics for the Player Sprite在Level1.ccb中,无法打开player的I... 阅读全文
posted @ 2015-02-11 19:13 SomeBod_Y 阅读(404) 评论(0) 推荐(0) 编辑

CCNode Class-----Cocos2D-Swift v3.3

摘要: CCNode Class ReferenceInherits fromCCResponder: NSObjectConforms toCCSchedulerTargetDeclared inCCNode.hOverviewCCNode is the base class for all object... 阅读全文
posted @ 2015-02-01 22:03 SomeBod_Y 阅读(481) 评论(0) 推荐(0) 编辑

CCAction Class 和 CCActionInterval Class 和 CCActionMoveTo Class ---Cocos2D-Swift v3.3

摘要: CCAction Class ReferenceInherits fromNSObjectConforms toNSCopyingDeclared inCCAction.hOverviewCCAction is an abstract base class for all actions. Acti... 阅读全文
posted @ 2015-01-31 17:49 SomeBod_Y 阅读(391) 评论(0) 推荐(0) 编辑

CCTouch和CCTouchPhase --- Cocos2D-Swift v3.3

摘要: CCTouch Class ReferenceInherits fromNSObjectDeclared inCCTouch.hOverviewThin wrapper around platform-specific touch events (ieUITouch). CCTouch is pla... 阅读全文
posted @ 2015-01-31 17:01 SomeBod_Y 阅读(227) 评论(0) 推荐(0) 编辑

CCDirector--Cocos2D-Swift v3.3

摘要: CCDirector Class ReferenceInherits fromCC_VIEWCONTROLLERDeclared inCCDirector.hOverviewThe director creates and handles the main Window and the Cocos2... 阅读全文
posted @ 2015-01-31 15:12 SomeBod_Y 阅读(366) 评论(0) 推荐(0) 编辑

CCTransition类--Cocos2D-Swift v3.3

摘要: CCTransition Class Reference继承自: CCScene:CCNode:CCResponder:NSObject声明自: CCTranslation.h概述:A transition animates the presentation of a new scene while... 阅读全文
posted @ 2015-01-31 14:42 SomeBod_Y 阅读(405) 评论(0) 推荐(0) 编辑

SpriteBuilder 学习笔记二

摘要: Chapter 3 Controlling and Scrolling@implementation GameScene { __weak CCNode *_levelNode; __weak CCPhysicsNode *_physicalNode; __weak CCNode ... 阅读全文
posted @ 2015-01-30 19:28 SomeBod_Y 阅读(603) 评论(0) 推荐(0) 编辑

SpriteBuilder 学习笔记一

摘要: 只有user-interface nodes,必须Buttons,Text Filed,和Slider nodes才有CCControl选项卡其中Selector可以理解为:方法的名字。当按钮被按下时,会传递一个消息(可以理解为方法被调用)Continuous:当被选中时,方法会一直调用当用户不断的... 阅读全文
posted @ 2015-01-29 14:12 SomeBod_Y 阅读(730) 评论(0) 推荐(0) 编辑