segunda-feira, 16 de janeiro de 2017

Pong Game in JavaFX using 90 lines of code

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
* Using JDK 8, run: javac  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.

Nenhum comentário:

Postar um comentário