Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

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

  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!

1 decade ago by Kxen

I know there's a thread about your first question somewhere but I can't find it. Best I could find is http://impactjs.com/forums/impact-engine/entities-in-plugins

1 decade ago by yatayata

thanks kxen -

so that maybe a way to patch the loader for weltmeister.
then my game.requires for the game runtime...

then i just need to conform to the right naming convention for models etc...

would be good to have a bit more info before diving off!
Page 1 of 1
« first « previous next › last »