As a general rule, load all of the assets your sketch is gonna use in setup(), before draw() begins, storing them in global variables.
Classes should request already loaded assets rather than loading them on their own.
As a general rule, load all of the assets your sketch is gonna use in setup(), before draw() begins, storing them in global variables.
Classes should request already loaded assets rather than loading them on their own.