Re-structured Renderer, bugfixes, implemented EnemySpawn system

This commit is contained in:
Anuken
2017-09-23 11:50:50 -04:00
parent 446e70c52b
commit b3ef1e2f2f
13 changed files with 192 additions and 167 deletions

View File

@@ -1,5 +1,8 @@
package io.anuke.mindustry;
import io.anuke.mindustry.GameState.State;
import io.anuke.ucore.core.Inputs;
import io.anuke.ucore.core.Timers;
import io.anuke.ucore.modules.ModuleCore;
public class Mindustry extends ModuleCore {
@@ -8,6 +11,7 @@ public class Mindustry extends ModuleCore {
@Override
public void init(){
add(Vars.control = new Control());
add(Vars.renderer = new Renderer());
add(Vars.ui = new UI());
}
@@ -26,5 +30,10 @@ public class Mindustry extends ModuleCore {
//Gdx.app.getClipboard().setContents(e.getMessage());
throw e;
}
if(!GameState.is(State.paused)){
Inputs.update();
Timers.update();
}
}
}