Prevent Colliding Sprites From Overlapping?

For walls, you usually not make them by hands. You use a tilemap. And you can make your maps with Tiled
Here’s an example:
https://labs.phaser.io/edit.html?src=src\game%20objects\tilemap\collision\simple%20map.js

About Phaser 3 physics, you have 2 choice:

  • Arcade: with square or round body boxes only, it’s extremely fast and allow games to run in low end devices.
  • Matter: allow any kind of boxes shapes, pixel perfect is possible but more cpu intensive and harder to use i think (but never tried)