A java game engine that does pixel-perfect collisions on rotated, scaled, and light-sourced sprites, and sound mixing in software.
There are three sample games: ShootSomeRocks (an Asteroids-type game), Simple and MahJongg.
Run ./gradlew fatJar
.
To play a game, you need to use the appletviewer
application which is part of the standard Java distribution.
To play ShootSomeRocks, for example, run the following commands:
cd games/ShootSomeRocks
appletviewer ShootSomeRocks.html
The HTML files for each game could be opened in normal browsers, but most browsers no longer support Applets.
Alternatively, you can also run a game with Gradle by running ./gradlew play<Game>
where <Game>
is one of the
existing games.
For example to play Simple
, run ./gradlew playSimple
.
The game is built automatically if necessary.
To delete all compiled files and generated jars, run ./gradlew clean
.