Hello! I've been using Melonjs for several days now and am very happy with it.
However, there is one thing that bothers me. If I were to create a level where every tile on a certain platformer level is collidable and can be destroyed, what would be the best way to go about it?
1) Should I attach a collision rectangle to every single tile? Would it be expensive to perform collision tests afterwards? I'm asking this since Melonjs does not have a tile dedicated collision algorithm, but only handles tile shapes as normal collision polygons via SAT (as far as I've got it).
2) Will I run into 4th issue of mentioned here
https://github.com/melonjs/melonJS/wiki/Frequently-Asked-Questions#collisions: "Collision shapes with aligned edges (like rectangles that cover adjacent
tiles) can cause moving Entities to get stuck on the inner corners as
the Entity slides across what should be a flat surface. This is a well-known problem where "internal edges" confuse the collision
detection system, etc."