當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。