Create API for pausing and stopping game engine

This commit is contained in:
2021-03-12 18:36:16 +01:00
parent 73de1f0985
commit f17ce55882
5 changed files with 93 additions and 10 deletions

View File

@@ -27,6 +27,18 @@ public interface Context extends Updatable, Renderable, Disposable {
GUI newGUI();
boolean isRunning();
void close();
boolean isPaused();
void pause();
void resume();
boolean togglePause();
void init(Screen screen, Camera camera);
void input(Screen screen);