Edit: I noticed the formatting of my code got a bit messed up, I think it still gets the point accross though.
Hey everyone, I'm knew to Processing and I keep getting a NullPointerException thrown when I try to load a PImage. Can someone help me out? The exception occurs on the first line of loadImage(String filename) inside SpriteManager.
Game.java
[source]
import
processing.core.*;
public
class
Game
extends
PApplet {
private
SpriteManager spriteManager;
public
Game() { spriteManager =
new
SpriteManager(
this
); }