Created
July 18, 2013 15:55
-
-
Save smaspe/6030505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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