Android Open Source - pong-android Ball






From Project

Back to project page pong-android.

License

The source code is released under:

MIT License

If you think the Android project pong-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package catalinc.games.pong;
//  w  ww.  j a  va2  s.  c  om
import android.graphics.Paint;

class Ball {

    float cx;
    float cy;
    float dx;
    float dy;
    int radius;
    Paint paint;

    Ball(int radius, Paint paint) {
        this.radius = radius;
        this.paint = paint;
    }

}




Java Source Code List

catalinc.games.pong.Ball.java
catalinc.games.pong.Player.java
catalinc.games.pong.PongThread.java
catalinc.games.pong.PongView.java
catalinc.games.pong.Pong.java