Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. import com.badlogic.gdx.Game;
  2. import com.badlogic.gdx.backends.gwt.GwtApplication;
  3. import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
  4. import com.codemonkey.titanturret.MyGdxGame;
  5.  
  6. public class HtmlLauncher extends GwtApplication
  7. {
  8.  
  9.         MyGdxGame test = null;
  10.    
  11.         @Override
  12.         public GwtApplicationConfiguration getConfig ()
  13.         {
  14.             GwtApplicationConfiguration cfg = new GwtApplicationConfiguration(480, 320);
  15.             cfg.useDebugGL=true;
  16.             return cfg;
  17.         }
  18.  
  19.         @Override
  20.         public Game getApplicationListener ()
  21.         {
  22.             if(test == null)
  23.             {
  24.                 test = new MyGdxGame();
  25.             }
  26.             return test;
  27.         }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement