As my application (game) is getting bigger and bigger, I ran into a problem.
I have an action in the menu with the "start the game" button - when the user clicks this button, he starts the main game - now in this operation I create raster images, etc. in the constructor, but there is so much that now, when the action begins, there is a slight delay - about 2 seconds - before the game starts.
I'm obviously doing something wrong - please, someone can advise how to get around this, so the delay (which should obviously happen) is not noticed by the user.
Zippy source share