Skip to content

Instantly share code, notes, and snippets.

@oziguerra
Created June 9, 2015 17:51

Revisions

  1. oziguerra created this gist Jun 9, 2015.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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;
    }