摘要:
#import <Foundation/Foundation.h>#import "cocos2d.h"@interface GameScene : CCLayer{ CCSprite* player;}+(id) scene;@end启用加速计输入,创建并定位玩家精灵 -(id) init { if ((self = [super init])) { self.isAccelerometerEnabled = YES; // 支持重力加速 player = [CCSprite spriteWithFile:@"alien.pn... 阅读全文