6 Topics
|
|
hey everyone! I am working on a project in which i will be using cocos2d for developing a game for android. I am new to cocos2d. Can anyone tell me how to write a simple Hello World app on cocos2d using Eclipse( for Android ). I have already installed Android … |
|
hey everyone! I am working on a project in which i will be using cocos2d for developing a game fo android. I am new to cocos2d. Can anyone tell me how to write a simple Hello World app on cocos2d using Eclipse( for Android ). I have already installed Android … |
|
Hi, I am very much new to cocos2d.. I am developing an application in android using cocos2d.. In that, [code]public class BaseLayer extends CCLayer { ChildLayer cl = new ChildLayer(); this.addChild(cl); } public class ChildLayer extends CCLayer { public ChildLayer() { CCLayer.node(); } . . }[/code] In this, arrowed line … |
|
[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to … |
|
[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to … |
|
Hi, all Any thoughts on why this code runs slow on device but fast on simulator in iphone, I am making a game in cocos2d, and I am moving an object from one place to another , throught CCTouchBegan , CCTouchMoved, CCTouchEneded (ccp function) and after that I take the … |
The End.