View gist:3a44ea0d9ceaba8ff5e5
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
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; | |
} |