Versatile Java game engine with pluggable backends (this was used in Rogue, I think)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gamecore/src/mightypork/gamecore/core/init/InitTaskScreens.java

42 lines
684 B

package mightypork.gamecore.core.init;
import mightypork.gamecore.graphics.Renderable;
/**
* Task to init renderable screens (part of the main loop).<br>
* Resources must already be ready.
*
* @author Ondřej Hruška (MightyPork)
*/
public abstract class InitTaskScreens extends InitTask {
@Override
public void run()
{
app.setMainRenderable(getMainRenderableImpl());
}
/**
* Create a loader impl
*
* @return loader
*/
protected abstract Renderable getMainRenderableImpl();
@Override
public String getName()
{
return "renderables";
}
@Override
public String[] getDependencies()
{
return new String[] { "resources", "main_loop" };
}
}