Project.json not working in Cocos2d-JS -


i'm trying develop game using cocos2d-js, far i'm running stupid problems. have 1 , can't life of me figure out did wrong.

i have class tile sprite:

var tile = cc.sprite.extend({     ctor: function(file, params) {         this._super(file);     }, }); 

and guy extends it:

var goal = tile.extend({     ctor: function(params) {         this._super(res.goal_png, params);     }, }); 

which works properly. have guy, later decided wanted extend tile well:

var block = tile.extend({     ctor: function(params) {         this._super(res.block_png, params);     }, }); 

however, cocos2d-js says no. project.json:

{     "project_type": "javascript",      "debugmode" : 1,     "showfps" : true,     "framerate" : 60,     "id" : "gamecanvas",     "rendermode" : 0,     "enginedir":"frameworks/cocos2d-html5",      "modules" : ["cocos2d"],      "jslist" : [         "src/resource.js",         "src/tiles/tile.js",         "src/blocks/block.js",         "src/tiles/goal.js",         "src/map.js",         "src/data.js",         "src/gamescene.js",         "src/backgroundlayer.js",         "src/animationlayer.js",         "src/statuslayer.js"     ] } 

i have tile.js first, still console gives me error doesn't know tile on line 1 of block.js (also still loads 1 first).

i've tried changing project.json, , deleted it, game still compiles, giving me error. need clear sort of cache?

:(

edit: must sort of caching/memory issue, spent half hour battling problem without result. went game of lol, came , problem gone.

ok, solution dumbass.

apparently localhost gets setup cocos command points project folder. , thought had compile project every change, causing new tab open on every compile (without chrome's devtools), , chrome 1 caching files.

herptiederp


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -