Null reffrence from Json file(monogame)
Im making a simple game using a json file to generate the map. The code was working fine before i tried to addan "obstacle" to my code. after i start it im getting a null reffrence. the commented part is the line of code that makes the solution crash
1 Reply
does your json have an 'obstacles' section? and have you confirmed it's valid json?
might also be an issue in the SolidObstacle constructor