Discussion on Jewel Game for iPhone - Cocos2D

29 comments found.

Hi FlashTang,

i have added sound effect if I click on the jewel in -(BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event It`s works!

An other sound effect should play if the jewel is not fit and an other sound for matching 3 jewels. Where do I put [[SimpleAudioEngine sharedEngine] playEffect:@”soundEffect.mp3”]; in GameMain.m?

thank you very much for the quick reply!

you are awesome

Is there a way to add levels to this

What version of cocos 2d is this?

Hi X_JuDaH_X
It’s cocos2d v2.1
Regards
Tang

Is it possible to make the gem animated?

Hi CrazySami
At about line 897
You can see a function
-(Gem*) createGemDifferentFromArray:(NSMutableArray *)
It creates the gems , you change edit this function to make it be animated
You need make it buy yourself , I’m not giong to provid code , just piont you a direction
Kind regards
Tang

Hello. I’m getting an error when using iPhone Retina (4-inch 64-bit) in the simulator.

Error is coming from CCDirectorIOS.h Semantic Issue Redefinition of ‘_ccContentScaleFactor” with a different type. ‘CGFloat’ (aka ‘double’) vs. ‘float’

Hi cjcobra2
Sorry for tardy reply , I didn’t see your comment
There is a buyer (Innerfear ) had the same issue with you:
http://codecanyon.net/item/flappy-fish-ipad-iphone-game-cocos2d-admob/7126928/comments?page=2
The solution :
http://www.cocos2d-iphone.org/forums/topic/redefinition-error-__cccontentscalefactor/
Kind regards
Tang

that worked! Thank you!

The screenshot shows admob, is that part of the code?

How can i change the background color?

Hi gwasi thanks
In GameMain.m

try change
if( (self=[super initWithColor:ccc4(0,0, 0, 1)]) ) {

to

if( (self=[super initWithColor:ccc4(0,0, 255, 255)]) ) {

R,G,B, and alpha
then the background should be blue

Kind regards
Tang

Thanks. Another question, I was trying to add sound effect in there. I saw your comment on the top and I added the code in there. but it’s not working. [[SimpleAudioEngine sharedEngine] playEffect:@”magic.wav”];

Your game giving some errors when i tried to submit it to App Store. Because your code are no longer suitable for Xcode 7. You need to update your game to 64bit support.Thanks.

Just got rejected from App Store.

by
by
by
by
by
by