Repository metrics
- Stars
- (1 star)
- PR merge metrics
- (PR metrics pending)
Description
It would be nice to allow parts of the background hide objects partially.
For example, in Lätkäzombit, the original graphics had the coat track overlap a bit with the locker, covering it slightly. The coat rack was made less wide to not cover the locker. Also, it would be cool if the surrounding darkness in the WCs could partially obscure some of the objects.
Currently, there are the background layer and the object layer. Objects in the object layer, if they overlap, the first one in the JSON is drawn first and therefore displayed on the bottom.
One solution would be to extract the coat rack from the background layer and add it to the object layer as a new, uninteractive object type. Code could be added to control this more explicitly.
There could also be a new layers - in this case, background, objects behind the coat rack, coat rack layer, and then objects in front of the coat track. There were performance concerns during the development - increasing the number of layers increases the number of checks when you're clicking on something. But currently the engine has been optimized enough that this might not be a problem. However, the coat track in the object layer solution is probably more flexible.