1 decade ago by doobdargent
Hey,
since Weltmeister loads all the level's entities at init(), I don't want my game to consume resources trying to draw off screen entities.
So I've override the Entity.draw() methods like this:
The thing is, in Weltmeister, the entities are now hidden.
Any idea why?
Cheers!
since Weltmeister loads all the level's entities at init(), I don't want my game to consume resources trying to draw off screen entities.
So I've override the Entity.draw() methods like this:
draw: function(){ if(!ig.game.isInScreen(this.pos)) return; this.parent(); }
The thing is, in Weltmeister, the entities are now hidden.
Any idea why?
Cheers!