I just wanted to add space invaders as an easter egg to a program I made.
I found an open source code Here
The game runs fine on its own. However when I try to run it from a button in my program it makes my program and that game freeze. I just took his source code and added it to mine, so it is in the same jar file.
I tried 2 ways to start it.
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
Game.main(null);
}
});
}
and
plain old Game.main(null);
Should I be starting this some other way?
Just had to create it’s own thread for it.