【发布时间】:2009-11-18 07:50:03
【问题描述】:
我正在为 iPhone (cocos) 开发一些使用多点触控的游戏。谁能教我如何开始,从头开始。我不确定从哪里开始或任何可以提供帮助的资源。我非常感谢您的帮助。
@implementation GameScene
- (id)init
{
if (self = [super init])
{
Sprite *background = [Sprite spriteWithFile:@"unzip.png"];
background.position = CGPointMake(240,160);
[self addChild:background];
Label *aboutContent = [Label labelWithString:@"Welcome to the game" fontName:@"Helvetica" fontSize:30];
aboutContent.position = CGPointMake(240,160);
[self addChild:aboutContent];
}
return self;
}
@end
我有这个代码。这会导入图像。只是希望玩家可以触摸中心的 2 点 A 和 B 并将它们移动到彼此远离的相对两侧。谁能给我一些例子。?
【问题讨论】:
标签: iphone objective-c cocos2d-iphone