本文整理汇总了Java中org.newdawn.slick.loading.LoadingList.setDeferredLoading方法的典型用法代码示例。如果您正苦于以下问题:Java LoadingList.setDeferredLoading方法的具体用法?Java LoadingList.setDeferredLoading怎么用?Java LoadingList.setDeferredLoading使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.newdawn.slick.loading.LoadingList
的用法示例。
在下文中一共展示了LoadingList.setDeferredLoading方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.newdawn.slick.loading.LoadingList; //导入方法依赖的package包/类
/**
* @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
*/
public void init(GameContainer container) throws SlickException {
LoadingList.setDeferredLoading(true);
new Sound("testdata/cbrown01.wav");
new Sound("testdata/engine.wav");
sound = new Sound("testdata/restart.ogg");
new Music("testdata/testloop.ogg");
music = new Music("testdata/SMB-X.XM");
new Image("testdata/cursor.png");
new Image("testdata/cursor.tga");
new Image("testdata/cursor.png");
new Image("testdata/cursor.png");
new Image("testdata/dungeontiles.gif");
new Image("testdata/logo.gif");
image = new Image("testdata/logo.tga");
new Image("testdata/logo.png");
new Image("testdata/rocket.png");
new Image("testdata/testpack.png");
font = new AngelCodeFont("testdata/demo.fnt", "testdata/demo_00.tga");
}
示例2: init
import org.newdawn.slick.loading.LoadingList; //导入方法依赖的package包/类
public void init(GameContainer container, StateBasedGame game)
throws SlickException {
ConfigsManager.getInstance().applicateConfigs();
LoadingList.setDeferredLoading(true);
DatasManager.getInstance().addFile("LivingEntity.name", new TrueTypeFont(new Font("Verdana", Font.BOLD, 12), true));
DatasManager.getInstance().addFile("TextEffect.damages", new TrueTypeFont(new Font("Verdana", Font.BOLD, 12), true));
DatasManager.getInstance().addFile("TextEffect.status", new TrueTypeFont(new Font("Verdana", Font.BOLD, 14), true));
DatasManager.getInstance().addFile("MouseCursor.default", new Image("res/images/cursors/default.png"));
DatasManager.getInstance().addMap("test.tmx");
try {
ResourcesManager.getInstance().loadResources();
} catch (Exception e) {
throw new SlickException(e.getMessage());
}
super.init(container, game);
}
示例3: init
import org.newdawn.slick.loading.LoadingList; //导入方法依赖的package包/类
@Override public void init(GameContainer container, StateBasedGame game) throws SlickException {
container.setShowFPS(false);
LoadingList.setDeferredLoading(false);
try {
initRsrc = frozenUniverse.loadInit();
} catch (ResourcePackException e) {
throw new SlickException("Issue with world resource pack: " + e.getMessage(), e);
}
SoundSettings.registerSoundManager(soundControl);
soundControl.setBgm(initRsrc.backgroundMusic);
soundControl.playMusic();
}