![](http://hi.csdn.net/attachment/201109/9/0_13155544511592.gif)
![](http://hi.csdn.net/attachment/201109/9/0_1315554485w00q.gif)
![](http://hi.csdn.net/attachment/201109/9/0_1315554516YS2h.gif)
启始点为 240,0 横屏的方式
下面为实现在代码
//
// HelloWorldLayer.h
// playBackgroundMusic
//
// Created by Mica001 on 11-9-1.
// Copyright __MyCompanyName__ 2011年. All rights reserved.
//
// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
//@class PASoundSource ;
// HelloWorldLayer
@interface HelloWorldLayer : CCLayer
{
// PASoundSource *bgTrack;
CCSprite *grossini;
CCSprite *tamara;
float a,b,c;
float stepx;
float scale1;
}
// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCSce