存档

2011年9月 的存档

Iphone Game development Esimate [closed]

2011年9月23日 没有评论

I have been asked to give an estimate for an iphone game application.

I really have bad estimates for game application.

Can you share me links or stuff which will give me some idea of how long it will take me to develop the game.

I know this is very crude data, but some link that will give me database or share experiences about how much time other developers took for different games.

It really depends on your skills Amol.

Among other elements:

  • will you be doing the art assets, or are they given to you
  • are you designing the game, or just implementing it
  • do you “discover” Objective-C or are you an experienced iPhone or even Mac business application developer?

All these change your estimate drastically.

You also have to take into account the technique you will use:

  • pure OpenGL
  • Cocos2D
  • Unity

which partly depends on the previous questions.

Then you need to know which frameworks you intend to use:

  • Quartz
  • Core Graphics
  • Core Data
  • Game Center

and many other possibilities.

If the game is very simple, you probably won’t need a database or a leaderboard. If you’re implementing a huge tridimensional multiplayer online roleplaying game client, you might need a team to help you out.

You need to figure out the answers to all this before you can even put out a time estimate…

分类: stackoverflow精选, unity3d 标签:

Android应用之个人应用软件开发【全套程序展示及APK下载】

2011年9月13日 没有评论

紫秀随身记

Android应用之个人应用软件开发【全套程序展示及APK下载】

Android应用之个人应用软件开发【全套程序展示及APK下载】

Android应用之个人应用软件开发【全套程序展示及APK下载】

Android应用之个人应用软件开发【全套程序展示及APK下载】

Android应用之个人应用软件开发【全套程序展示及APK下载】

Android应用之个人应用软件开发【全套程序展示及APK下载】

紫秀随身记是一款专门为没有理财习惯和的人定制的理财软件和一款随身记事的一款日常实用的免费软件,它具有一键理财,理财统计,写日志,等记账记事的功能。它还有非常清新的界面和字体显示,陪伴您记录每一天的点点滴滴。

 

下载地址:

http://static.sc.hiapk.com/html/2011/09/234617.html

http://www.goapk.com/intro.php?softid=49076

 

分类: 未分类 标签:

How to fill texture in cocos2d?

2011年9月5日 没有评论

I have a shape and texture image.. (shape.png, texture.png)

I would like to paint a shape as texture.png pattern in cocos2d.
(shape size is pretty bigger than texture image.
so automatically fill texture pattern in entire shape.

I trying to know the way.

Can’t find..

someone have a solution to solve this problem?

sprite = [[CCSprite alloc] initWithFile:@"texture.png"];

ccTexParams params = {GL_LINEAR,GL_LINEAR,GL_REPEAT,GL_REPEAT};
[sprite.texture setTexParameters:&params];
[sprite setTextureRect: CGRectMake(0.0, 0.0, w, h)];

This code repeats a texture in both the x and the y (or s, t in texture terms). The only limitation is that your texture must be a power of two (ie. 64 * 128, 128 * 128, 1024 * 1024) etc.

分类: stackoverflow精选, unity3d 标签:

Check if an action is currently running?

2011年9月4日 没有评论

Is it possible to check if there are actions currently running in a CCNode class in Cocos2d? I’d like to know if a CCMoveBy is still running or not.

You can always add a method to indicate when the method is finished, and then toggle some BOOL or something like that to indicate it is not running, and put a start method to toggle the BOOL to indicate it started:

id actionMove = [CCMoveTo actionWithDuration:actualDuration 
 position:ccp(-target.contentSize.width/2, actualY)];

id actionMoveDone = [CCCallFuncN actionWithTarget:self 
selector:@selector(spriteMoveFinished:)];

id actionMoveStarted = [CCCallFuncN actionWithTarget:self 
selector:@selector(spriteMoveStarted:)];

[target runAction:[CCSequence actions:actionMoveStarted, actionMove, actionMoveDone, nil]];

Modified from here.

In the two @selector methods:

-(void) spriteMoveStarted:(id)sender {
    ccMoveByIsRunning = YES;
}

and:

-(void) spriteMoveFinished:(id)sender {
    ccMoveByIsRunning = NO;
}

where ccmoveByIsRunning is the BOOL I’m referring to.

EDIT: As xus has pointed out, you should actually not do this and instead use [self numberOfRunningActions] as others have pointed out.

You can use [self numberOfRunningActions] on any CCNode. In your case, it sounds like you want to know if there are simply any actions running or not, so it’s not a big deal to know the exact number beforehand.

We can easily check if specific actions run by using getActionByTag method and action.tag property.
There is no need to introduce the CCCallFuncN callbacks or counting numberOfRunningActions.

Example.

In our app it is important to let the jumpAction to be finished prior to executing another jump. To prevent triggering another jump during an already running jump action
the critical jump section of code is protected as follows:

#define JUMP_ACTION_TAG   1001

-(void)jump {
    // check if the action with tag JUMP_ACTION_TAG is running:
    CCAction *action = [sprite getActionByTag:JUMP_ACTION_TAG]; 

    if(!action) // if action is not running execute the section below:
    {
        // create jumpAction:
        CCJumpBy *jumpAction = [CCJumpBy actionWithDuration:jumpDuration position:ccp(0,0) height:jumpHeight jumps:1];

        // assign tag JUMP_ACTION_TAG to the jumpAction:
        jumpAction.tag = JUMP_ACTION_TAG;

        [sprite runAction:jumpAction];    // run the action
    }
}
分类: stackoverflow精选, unity3d 标签: