Closed ricardoquesada closed 11 years ago
I noticed that cocos2d-html5 uses some macros from cocos2d-iphone / cocos2d-x.
It is very important, whenever possible, to use JS friendly API.
I propose to replace cc.RANDOM_0_1() with the built-in JS API: Math.random()
I think so. I will check the code, thank you.
It has been fixed.
I noticed that cocos2d-html5 uses some macros from cocos2d-iphone / cocos2d-x.
It is very important, whenever possible, to use JS friendly API.
I propose to replace cc.RANDOM_0_1() with the built-in JS API: Math.random()