Skip to content

Instantly share code, notes, and snippets.

@sephto
Created March 24, 2013 01:07
Show Gist options
  • Save sephto/5229987 to your computer and use it in GitHub Desktop.
Save sephto/5229987 to your computer and use it in GitHub Desktop.
if(event.type == TouchEvent.TOUCH_DOWN) {
int tempCordX = event.x;
int tempCordY = event.y;
if (event.type == TouchEvent.TOUCH_UP){
if(event.x < tempCordX ) {
world.snake.turnLeft();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment