1 decade ago by yatayata
i have a game which is getting fairly large, lots of entities etc.
is there any namespacing built in? eg
and placing files inside
entities/intro/guest.js
doesnt work out of the box. I guess i have to customize the class loader, so a pointer where to start would be great, or a simpler poor-mans namespacing technique.
also, it seems the game loads ALL graphics for ALL levels at startup? is there a way to delay to more of a when-needed approach?
tx!
is there any namespacing built in? eg
ig.module( 'game.entities.intro.guest'
and placing files inside
entities/intro/guest.js
doesnt work out of the box. I guess i have to customize the class loader, so a pointer where to start would be great, or a simpler poor-mans namespacing technique.
also, it seems the game loads ALL graphics for ALL levels at startup? is there a way to delay to more of a when-needed approach?
tx!