arrows to move and jump space to switch levels give credit if you want to use
100% by me how it works: the player has two sides: red, and white. the code detects that if the only the red side is touching the ground (that means the player is on a slope), then the player moves right. if the white side is touching the ground, it moves left, therefore making slope detection.