Implemented elevation in editor and mechanically in-game

This commit is contained in:
Anuken
2018-06-11 15:18:25 -04:00
parent cbd83b5e39
commit b609b5909b
25 changed files with 534 additions and 376 deletions

View File

@@ -1,5 +1,6 @@
package io.anuke.mindustry;
import com.badlogic.gdx.utils.async.AsyncExecutor;
import io.anuke.mindustry.core.*;
import io.anuke.mindustry.io.BundleLoader;
import io.anuke.ucore.core.Timers;
@@ -9,21 +10,20 @@ import io.anuke.ucore.util.Log;
import static io.anuke.mindustry.Vars.*;
public class Mindustry extends ModuleCore {
private AsyncExecutor exec = new AsyncExecutor(1);
@Override
public void init(){
Timers.mark();
Vars.init();
debug = Platform.instance.isDebug();
Timers.mark();
Log.setUseColors(false);
BundleLoader.load();
ContentLoader.load();
Log.info("Time to load content: {0}", Timers.elapsed());
module(logic = new Logic());
module(world = new World());
module(control = new Control());
@@ -31,6 +31,8 @@ public class Mindustry extends ModuleCore {
module(ui = new UI());
module(netServer = new NetServer());
module(netClient = new NetClient());
Log.info("Time to load [total]: {0}", Timers.elapsed());
}
@Override