当前位置: 首页>>代码示例>>Java>>正文


Java GwtApplicationConfiguration类代码示例

本文整理汇总了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;
}
 
开发者ID:Anuken,项目名称:Mindustry,代码行数:18,代码来源:HtmlLauncher.java

示例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;
  }
 
开发者ID:igorcrevar,项目名称:GoingUnder,代码行数:8,代码来源:GoingUnder_html.java

示例3: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
        GwtApplicationConfiguration config = new GwtApplicationConfiguration(1280, 720);
        return config;
}
 
开发者ID:ZKasica,项目名称:Planet-Generator,代码行数:6,代码来源:HtmlLauncher.java

示例4: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
        return new GwtApplicationConfiguration(480, 320);
}
 
开发者ID:davyjoneswang,项目名称:libgdx-learnlib,代码行数:5,代码来源:HtmlLauncher.java

示例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;
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:6,代码来源:HtmlLauncher.java

示例6: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
        return new GwtApplicationConfiguration(480, 800);
}
 
开发者ID:kirdmiv,项目名称:Flappy-Baranus,代码行数:5,代码来源:HtmlLauncher.java

示例7: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig() {
    return new GwtApplicationConfiguration(ProjectTD.V_WIDTH, ProjectTD.V_HEIGHT);
}
 
开发者ID:MiniDigger,项目名称:projecttd,代码行数:5,代码来源:HtmlLauncher.java

示例8: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
    return new GwtApplicationConfiguration(Klooni.GAME_WIDTH, Klooni.GAME_HEIGHT);
}
 
开发者ID:LonamiWebs,项目名称:Klooni1010,代码行数:5,代码来源:HtmlLauncher.java

示例9: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
	GwtApplicationConfiguration cfg = new GwtApplicationConfiguration(480, 320);
	return cfg;
}
 
开发者ID:bp2008,项目名称:blueirisviewer,代码行数:6,代码来源:GwtLauncher.java

示例10: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
        return new GwtApplicationConfiguration(MainGameClass.WIDTH, MainGameClass.HEIGHT);
}
 
开发者ID:johannesmols,项目名称:GangsterSquirrel,代码行数:5,代码来源:HtmlLauncher.java

示例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);
}
 
开发者ID:cdetamble,项目名称:nomoore,代码行数:6,代码来源:HtmlLauncher.java

示例12: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
        return new GwtApplicationConfiguration(400, 640);
}
 
开发者ID:Frappagames,项目名称:le-pendu,代码行数:5,代码来源:HtmlLauncher.java

示例13: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig() {
    GwtApplicationConfiguration configuration = new GwtApplicationConfiguration(800, 450);
    return configuration;
}
 
开发者ID:tommyettinger,项目名称:ColorGuard,代码行数:6,代码来源:GwtLauncher.java

示例14: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
        return new GwtApplicationConfiguration(MellowGame.SCREEN_WIDTH, MellowGame.SCREEN_HEIGHT);
}
 
开发者ID:code-disaster,项目名称:gdx-mellow-demo,代码行数:5,代码来源:HtmlLauncher.java

示例15: getConfig

import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; //导入依赖的package包/类
@Override
public GwtApplicationConfiguration getConfig () {
	return new GwtApplicationConfiguration(480, 320);
}
 
开发者ID:DevelopersGuild,项目名称:Planetbase,代码行数:5,代码来源:HtmlLauncher.java


注:本文中的com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。