The fastest and simplest way to start a new Slick 2D based game.
You don't need to clone this repository to get started. The project archetype as well as the JARs are published in the official Maven repositories, so you can just follow the steps below from scratch. Clone this project only if you want to contribute to Slick2D or to the game archetype.
javaws.jarwhich ships with the Oracle JDK (It's not available in the public Maven repositories). The
pom.xmlfile references a local filesystem path to
javaws.jarfor that reason.
javaws.jarseparately). On some Linux distributions you can install Netx and change the system path to point to
netx.jar. For example on Ubuntu the package to install is
icedtea-netx-commonand the jar is in
The command below is using
archetypeVersion=1.0.0. Make sure you use the latest available version from Maven central
cd /home/<user>/projects/ -or- cd C:\Users\<user>\Projects\ # You can omit the last 4 parameters for interactive mode mvn archetype:generate -DarchetypeGroupId=org.slick2d -DarchetypeArtifactId=slick2d-basic-game-archetype -DarchetypeVersion=1.0.0 -DgroupId=com.me.game -DartifactId=game -Dversion=0.0.1-SNAPSHOT -Dpackage=com.me.game cd game mvn clean package
You'll end up with a packaged game in
target/game-0.0.1-SNAPSHOT-release.zip. Just unzip and run
game.sh (Linux) or
game.bat (Windows). Alternatively, files are also available unzipped in
Configuration-free with the awesome Maven Natives plugin ! Just hit the "Run" button !
Game, Debug as, Java application
mvn packageonce, the native libraries will get copied in
I believe making Slick 2D available through Maven will make life easier for users:
It seems that the upstream Slick2D Mercurial repository is not updated any more, despite numerous bug reports and pull requests. Because of that, I'm now accepting patches that I'll integrate and release through Maven. I guess you could consider this project a fork of the official sources.