All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.harium.etyl.Etyl Maven / Gradle / Ivy

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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy