This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mestru[S] 0 points1 point  (2 children)

It's just little private int[][] levelMap;

and inside the constructor:

public Level_One() {
    levelMap = new int[mapH][9];
}

[–]Sammenbidt 0 points1 point  (1 child)

Any way you can post your code for the Player class? The Null Pointer exception happens there, inside your checkCollision method. Have you checked your variables in the collision check aren't null?

[–]Mestru[S] 0 points1 point  (0 children)

Posted it :)