I’ve made a simple game using cocos2d-js. On cocos simulator it works, but on browser I have trouble with one line:
var cache = cc.SpriteFrameCache.getInstance();
Which causes error:
TypeError: undefined is not an object (evaluating ‘cc.SpriteFrameCache.getInstance’)
looks like somehow cc.SpriteFrameCache does not exist on browser.
Tested on safari & chrome.