my source
https://github.com/ritonda66/shooter/blob/master/src/ch/shooter/gamePanel.java
problem:
when im clicking on the jar. nothing happends for 5-10 secs then it opens. BUT WHY???
Because the images are loaded in a static initializer block before the gui is shown. You could just load them locally instead of downloading from internet :persecutioncomplex:
@Waterwolf
They are not loaded in a static initializer block, those Image variables are instance variables.
@OP
Your internet speed isn’t extremely fast. It takes 5-10 seconds to download all those images
Ah crap, somehow misread that they are static. They’re loaded in constructor then :
tyvm works now
What works? The only problem you had was the long startup
its faster now
But is 5-10 seconds going to kill you?