Skip to content

Instantly share code, notes, and snippets.

@smaspe
Created July 18, 2013 15:55
Show Gist options
  • Save smaspe/6030505 to your computer and use it in GitHub Desktop.
Save smaspe/6030505 to your computer and use it in GitHub Desktop.
@Override
public boolean tap(float x, float y, int count, int button) {
// where x and y are tap inputs
Vector3 touchPoint = new Vector3(x, y, 0);
camera.unproject(touchPoint);
game.play((int) touchPoint.x, (int) touchPoint.y);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment