Fixes a issue where shutdown hooks and event dispatcher thread could both try to acquire a lock to Game.class, and not release the lock during shutdown, causing a deadlock.
Adds an init(Runnable, Runnable, String...) method to Game.class, to make it easier to run code before and after initialization on the event dispatch thread.
Fixes threading issues in Game.class.
Fixes #765
Fixes #764
Fixes a issue where shutdown hooks and event dispatcher thread could both try to acquire a lock to Game.class, and not release the lock during shutdown, causing a deadlock.
Adds an init(Runnable, Runnable, String...) method to Game.class, to make it easier to run code before and after initialization on the event dispatch thread.