笔记杂类_coco_js

[1]  easing(cc.easeOut(6))        先快后慢   easing(cc.easeIn(6))         先慢后快
 
 

 

[2] 活动+回调  写法

 var move =new cc.MoveTo(2, cc.p(this._hero.width/2 + 100, this._hero.y)).easing(cc.easeOut(2));
 var callbackJump =new cc.CallFunc(function(){
   		 cc.log("action over");
	});
 var sequence  = new cc.Sequence(move,callbackJump);
 this._hero.runAction(sequence);
[3] button 写法

 var playBtn = new cc.MenuItemImage(
   		 "#welcome_playButton.png",
  	  	 "#welcome_playButton.png",null,this);

 

你可能感兴趣的:(笔记杂类_coco_js)