com.harium.etyl.Etyl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etyl-gdx Show documentation
Show all versions of etyl-gdx Show documentation
An Etyl's backend based on libgdx
The newest version!
package com.harium.etyl;
import com.harium.etyl.commons.context.Application;
import com.harium.etyl.core.GDXCore;
import com.harium.etyl.core.Engine;
import com.harium.etyl.loader.FontLoader;
import com.harium.etyl.loader.MultimediaLoader;
import com.harium.etyl.loader.image.ImageLoader;
public abstract class Etyl extends BaseEngine implements Engine {
public static final String WINDOW = "window";
private Application application;
public Etyl(int w, int h) {
super(w, h);
addLoader(ImageLoader.getInstance());
addLoader(MultimediaLoader.getInstance());
addLoader(FontLoader.getInstance());
}
public void init() {
initialSetup("");
application = startApplication();
application.setLoaded(false);
core.setApplication(application);
// Setup GDX
super.init();
}
protected GDXCore initCore() {
return new GDXCore(w, h);
}
}