本文整理汇总了Java中com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java GwtApplicationConfiguration类的具体用法?Java GwtApplicationConfiguration怎么用?Java GwtApplicationConfiguration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GwtApplicationConfiguration类属于com.badlogic.gdx.backends.gwt包,在下文中一共展示了GwtApplicationConfiguration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig() {
GwtApplicationConfiguration config = new GwtApplicationConfiguration(WIDTH, HEIGHT);
Element element = Document.get().getElementById("embed-html");
VerticalPanel panel = new VerticalPanel();
panel.setWidth("100%");
panel.setHeight("100%");
panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
element.appendChild(panel.getElement());
config.rootPanel = panel;
config.width = 2000;
config.height = 2000;
return config;
}
示例2: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
//GwtApplicationConfiguration config = new GwtApplicationConfiguration(384, 640);
// GwtApplicationConfiguration config = new GwtApplicationConfiguration(480, 800);
GwtApplicationConfiguration config = new GwtApplicationConfiguration(420, 700);
return config;
}
示例3: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
GwtApplicationConfiguration config = new GwtApplicationConfiguration(1280, 720);
return config;
}
示例4: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(480, 320);
}
示例5: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig() {
GwtApplicationConfiguration configuration = new GwtApplicationConfiguration(G.SCREEN_WIDTH, G.SCREEN_HEIGHT);
return configuration;
}
示例6: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(480, 800);
}
示例7: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig() {
return new GwtApplicationConfiguration(ProjectTD.V_WIDTH, ProjectTD.V_HEIGHT);
}
示例8: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(Klooni.GAME_WIDTH, Klooni.GAME_HEIGHT);
}
示例9: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
GwtApplicationConfiguration cfg = new GwtApplicationConfiguration(480, 320);
return cfg;
}
示例10: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(MainGameClass.WIDTH, MainGameClass.HEIGHT);
}
示例11: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
int scale = 2;
return new GwtApplicationConfiguration(Configuration.WINDOW_WIDTH * scale, Configuration.WINDOW_HEIGHT * scale);
}
示例12: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(400, 640);
}
示例13: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig() {
GwtApplicationConfiguration configuration = new GwtApplicationConfiguration(800, 450);
return configuration;
}
示例14: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(MellowGame.SCREEN_WIDTH, MellowGame.SCREEN_HEIGHT);
}
示例15: getConfig
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
return new GwtApplicationConfiguration(480, 320);
}