rapid-router
rapid-router copied to clipboard
Character drives over trees in level 36
Describe the bug In level 36, there are trees that are so close to the road, they cover some of it. When the character (either the Van, or the Sleigh in December) drives on the tiles under the trees, the asset image drives over the trees. Most likely because the character image is generated after the trees so the character's z-index is higher.
To Reproduce Steps to reproduce the behaviour:
- Go to level 36.
- Add some blocks so the character gets to the tiles under the trees.
- Press Play.
- Notice that the character's image is "on top" of the trees when it should be under them.
Expected behaviour The character image should be on top of the road, as it is now, but below the trees (or any other decor item that is "higher" than the road).
Additional context / Acceptance criteria Two solutions are possible here:
- [ ] (hard solution): Fix the game rendering logic so that the van / sleigh is properly in between the road and the trees. This means, essentially, fixing the z-index values (eg: road.z_index = 0, van.z_index = 1, trees.z_index = 2).
- [ ] (easy solution): Move the trees so they don't cover the road. The x and y values of the LevelDecor objects for level 36 would need to be changed.
Optional task:
- [ ] Perform a quick scan of the other levels to double-check if the same problem affects any other levels (only needed if doing the easy solution).
Screenshots