(currentLines)
| 900 | } |
| 901 | |
| 902 | IsPlayerOnGround(currentLines) { |
| 903 | this.currentPos.y += 1; |
| 904 | for (let i = 0; i < currentLines.length; i++) { |
| 905 | if (currentLines[i].isHorizontal && this.IsCollidingWithLine(currentLines[i])) { |
| 906 | this.currentPos.y -= 1; |
| 907 | return true; |
| 908 | } |
| 909 | } |
| 910 | this.currentPos.y -= 1; |
| 911 | return false; |
| 912 | } |
| 913 | |
| 914 | IsPlayerOnDiagonal(currentLines) { |
| 915 | this.currentPos.y += 5; |
no test coverage detected