New Version of Game Base on previous

Forums Programming cocos2d Mac New Version of Game Base on previous

This topic contains 9 replies, has 4 voices, and was last updated by  phpbug 2 years, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
Author Posts
Author Posts
May 24, 2011 at 7:29 am #231583

phpbug
@phpbug

Hi Guys,

How you guys doing. Do hope you guys are could show me some light on this.

I’m bit lost here until the extent where i not able to reach out my hand for the light of hope.

I aready have my older version of game working perfectly fine. Lets name it Game A.

Then for now, i’m thinking of changing the skin and add in some additional feature to make it a better version of Game B.

What i did was, i copy the whole folder of Game A and rename it to Game B.

Also not only that, i also use the xcode self feature Project->Rename to rename the whole project.

But then when i run the xcode, it always refer the resource and everything back on Game A especially the image files.

I get to see the image files and etc.. only after i run Game A then run Game B.

If i run Game B directly, images file is not there.

Help ? SOS ? any idea?

May 24, 2011 at 7:55 am #330839

gurvinder_cyprus
@gurvinder_cyprus

Try removing the resources folder (choose delete references) from xcode and add it again.

May 24, 2011 at 8:03 am #330840

phpbug
@phpbug

Hi Buddy,

Thanks for the reply, let me try and report back ^^

May 24, 2011 at 8:17 am #330841

Birkemose
Keymaster
@birkemose

This link is useful, if you want to make several versions from the same codebase.

http://www.bit-101.com/blog/?p=2098

May 24, 2011 at 8:24 am #330842

phpbug
@phpbug

Hi @gurvinder_cyprus

What is your way of doing if you’re in my position. Will you just copy the previous project and paste it to a new folder with new name?

May 24, 2011 at 8:29 am #330843

gurvinder_cyprus
@gurvinder_cyprus

No,

What i do is to create a new target if most of the codebase is same.

And then each target can have it’s own resources folder.

May 24, 2011 at 8:50 am #330844

varedis
Moderator
@varedis

If you are using Xcode 4 make sure you Search Paths in your targets build settings are pointing at your new project, likelyhood is they are still pointing at your old project

May 24, 2011 at 9:00 am #330845

phpbug
@phpbug

Hi @Birkemose,@gurvinder_cyprus

Thank a bunch guys.

I’m running into some strange problem.

I copy the code base from Game A and rename it to Game B by using Project->rename

As we run our apps using the simulator. We will encounter different set of icon for each project that we have and test out in simulator.

What i am facing now is that, the icon for Game A seems to be overwrite by Game B. Meaning to say i can’t have 2 project at the same time under the simulator T.T this is tragic.

Do i need to configure anything from the infoplish file?

May 24, 2011 at 9:09 am #330846

gurvinder_cyprus
@gurvinder_cyprus

You need to change the bundle id in the info.plist file.

If two projects will have same bundle id, simulator will treat them as same app.

May 24, 2011 at 9:16 am #330847

phpbug
@phpbug

Hi @Birkemose,

@varedis,

@gurvinder_cyprus

Thanks a lot guys, I learned so much today.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.