javascriptcanvasprocessing-ide

Why my processing web game works only in Chrome?


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.


Solution

  • Try to use the preload directive for the PImage processingjs.org/reference/preload