1 decade ago by fugufish
Any way of selectively loading modules at the start?
eg: I want to load only the module below, if i'm on mobile. If not, i'll load another module
the reason is because we can't afford pre-loading all modules for all versions , especially if the game is huge.
eg: I want to load only the module below, if i'm on mobile. If not, i'll load another module
ig.module('game.entities.entity-player-mobile') .requires( 'impact.entity' ) .defines(function() { EntityPlayerMobile= ig.Entity.extend({ }); });
the reason is because we can't afford pre-loading all modules for all versions , especially if the game is huge.