Implemented a pause menu

This commit is contained in:
Anuken
2017-04-30 02:44:21 -04:00
parent 96e6d1488d
commit 923dac1b4e
4 changed files with 82 additions and 24 deletions

View File

@@ -39,6 +39,7 @@ public class Moment extends ModuleController<Moment>{
public Array<Tile> spawnpoints = new Array<Tile>();
public boolean playing = false;
public boolean paused = false;
@Override
public void init(){
@@ -55,7 +56,8 @@ public class Moment extends ModuleController<Moment>{
"left", Keys.A,
"down", Keys.S,
"right", Keys.D,
"rotate", Keys.R
"rotate", Keys.R,
"menu", Keys.ESCAPE
);
Settings.loadAll("io.anuke.moment");
@@ -80,6 +82,7 @@ public class Moment extends ModuleController<Moment>{
@Override
public void update(){
if(!paused)
super.update();
if(!playing) return;