I tend to split up those long lines so we can see the pattern (twice yPosChell, then twice xPosChell etc.)
Like here :
if(yPosChell >= wall1Y &&
yPosChell <= wall2Y &&
xPosChell >= wallx1 - 10 &&
xPosChell <= wallx1 ) {
I tend to split up those long lines so we can see the pattern (twice yPosChell, then twice xPosChell etc.)
Like here :
if(yPosChell >= wall1Y &&
yPosChell <= wall2Y &&
xPosChell >= wallx1 - 10 &&
xPosChell <= wallx1 ) {