Collision detection with walls and objects

All these seem so complicated lol. I’m ditching the idea of objects, I just wanna have collision detection with walls. Please help me with code. I’ve never done this, it’s the first time.