Back to project page pong-android.
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.
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; } }