just a simple wall collision system that i find works really well.
This wall collision uses touch sensing. There is a separate sprite, the wall hitbox, which senses if the player is touching it.