LoadSprites.java:204: int cannot be dereferenced g.drawImage(cfg.playerSpriteImage[1], pl ayerX, playerY, null); ^