Skip to content

Instantly share code, notes, and snippets.

@housemeow
Created October 4, 2013 13:15
Show Gist options
  • Save housemeow/6825715 to your computer and use it in GitHub Desktop.
Save housemeow/6825715 to your computer and use it in GitHub Desktop.
@Override
public void render() {
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
batch.setProjectionMatrix(camera.combined);
batch.begin();
float x = sprite.getX();
x+=0.005f;
sprite.setX(x);
sprite.draw(batch);
batch.end();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment