前面打算用cocos2dx来做事的。
但是发现居然没有mac上用的工具。
ok,I turned around and came back to cocos2d-iphone,
A bright shinning star tucked into my sight.
SpirteBuilder, what a fabulous decent tool!
打开它的第一时间,我的眼泪就留了下来。
我的心情是多么的沉重!我想过不了多久它的knockoff版本就要出来了吧。
anyway, discard all the bugging thoughts, let me stuck with my work first.
Here I must point out two things:
1. you need to call [CCNode setUserInteractionEnabled: YES] first if you want to use Touch event.
2. A long existing problem has been fixed in the most recent version, but still it exists in the stable version.
That is: your release version may fail to open. like an adhok version.
所以就是说,spritebuild用了cocos2d-iphone的v3版本.
现在任何的ccnode都可以直接用touch event了,
1. 但是你需要 [CCNode setUserInteractionEnabled: YES] ,否则是捕捉不到touch事件的。
2. 因为ccbreader里面有两处错用了casting,所以生成的release版本也许会open失败。
最新的版本已经修复了该问题,但是目前的相对稳定版还没有。
具体原因和解决方法请看:
http://forum.spritebuilder.com/t/ccbreader-readfloat-float-casting-problem/70
cocos2dx也有同样的问题,不知道他们修复了没。
I will post some more about building games with spritebuild,
only when I have time.