Skip to content

Instantly share code, notes, and snippets.

@oziguerra
Created June 9, 2015 17:51
Show Gist options
  • Save oziguerra/3a44ea0d9ceaba8ff5e5 to your computer and use it in GitHub Desktop.
Save oziguerra/3a44ea0d9ceaba8ff5e5 to your computer and use it in GitHub Desktop.
protected void actionOnTouch(float x, float y) {
//Increase/decrease the speed of the ball making the ball move towards the touch
//mBallSpeedX = (x - mBallX)*2;
//mBallSpeedY = (y - mBallY)*2;
mBallX = x;
mBallY = y;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment