I'd like to write a bomberman-like game with lace.gg using pixi.js v5 as the rendering engine.
I was wondering what the best practices are when it comes to layers. I assume it wouldn't make sense to create 1 layer per game element.
Would it make sense to put everything into 1 layer?
Or should I put the background (which never changes) into one layer and the rest into another one?
Or should I maybe put all players (constantly moving game elements) into one layer and everything else into another layer?
Or maybe every type of game object should go into one layer? Players, bombs, items, invulnarable blocks, normal blocks, explosions, background ...
I'm also wondering if I should use layers as in:
this.stage = new PIXI.Container();
this.backgroundLayer = new PIXI.Container();
this.mainLayer = new PIXI.Container();
this.stage.addChild(this.backgroundLayer, this.mainLayer);
or if I should use the pixi.layers plugin?