alexander-novo / Boardgame-Toolkit

A boardgame toolkit and remote play environment for Senior Projects at UNR
0 stars 0 forks source link

Add a layer system #36

Open alexander-novo opened 3 years ago

alexander-novo commented 3 years ago

Right now objects are added onto the canvas in order of how they were added onto the project, and canvas js renders them in this order almost all of the time - sometimes it decides not to. Add a layer system where we can select layers for each asset/collection so that fabricjs always draws things on top of the board, for instance.

Everything should default to layer 0, so that if we want something like a board to be under everything it can be on layer -1 and if we want something like player pieces to be on top of everything it can be on layer 1. Consider adding names to layers but if this is too difficult, don't.