A pong game implementation using 90 lines of Java code only. It is possible to write with less lines, but it would make the code unreadable.
To run it:
* Download the source and save it to a file called Pong.java
* Using JDK 8, run: javac Pong.java and then java Pong
You can improve the game mainly by changing its AI - now basically the enemy follows the ball. See the code below.
Comentários
Postar um comentário