This is my game: https://github.com/andrea96/savethequeen
Here an online version: http://andreaciceri.altervista.org/savethequeen/
I don't understand why it works only in Chrome(and I need to reload the page twice). Playing it using Processing IDE it works perfectly.
Try to use the preload directive for the PImage processingjs.org/reference/preload