예제 #1
0
파일: GOTF.java 프로젝트: DasAlvarp/GOTFgit
  // for VC
  // MORE FOR VC
  @Override
  public void render() {
    // Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
    batch.begin();

    if (ScreenManager.getCurrentScreen() != null) {
      ScreenManager.getCurrentScreen().render(batch);
    }
    if (ScreenManager.getCurrentScreen() != null) {
      ScreenManager.getCurrentScreen().update();
    }
    batch.end();
  }
예제 #2
0
파일: GOTF.java 프로젝트: DasAlvarp/GOTFgit
 public void resize(int width, int height) {
   if (ScreenManager.getCurrentScreen() != null) {
     ScreenManager.getCurrentScreen().resize(width, height);
   }
 }
예제 #3
0
파일: GOTF.java 프로젝트: DasAlvarp/GOTFgit
 public void dispose() {
   if (ScreenManager.getCurrentScreen() != null) {
     ScreenManager.getCurrentScreen().dispose();
   }
   batch = new SpriteBatch();
 }
예제 #4
0
파일: GOTF.java 프로젝트: DasAlvarp/GOTFgit
 @Override
 public void create() { // batch is what lets images exist..I think. Rest of names are intuitive.
   batch = new SpriteBatch();
   ScreenManager.setScreen(new GameScreen());
 }