plz help me make things solid

hey im making my first game its basicly mario just to learn how it all work ive drawn everything myself in paint got charecter to move properly and even have shrooms tht i can kill by jumping on them and die by touching them anyways i just want to ask how do i make walls solid or blocks tht you can stand on?