Pong is a JALSE example project. This is a very simple 2 player Pong implementation using Swing.
- Build using
./gradlew build
(see Building Java Projects with Gradle) - Run using
./gradle run
(See The Application Plugin)
Optionally you can also create an Eclipse project using ./gradlew eclipse
(see The Eclipse Plugins).
Key | Action |
---|---|
W | Moves left paddle up |
S | Moves left paddle down |
UP | Moves right paddle up |
DOWN | Moves right paddle down |
P | Pauses the game |
SPACE | Resets the game |
See the Wiki for more information.