Java Side Scroller Jump n Run Game (with Source Code)

The amazing Adventures of Stickman through the Galaxy – in a Bubble!

 Description of Java SideScroller Game

  This is a Jump n Run Game / sidescroller game written in Java.

In this game, the player jumps, rolls, swims and even flies through a lovely designed world. He must avoid falling in pits as well as being shot by canons while he tries to make it to the finish line.

Apart from the goal of just making a level, the player can collect items and special bonuses to climb to the top of the high score.

System Requirements / Performance info

Java must be installed, other than that, there should not be any problem running this game. If the game lags turn off the logging in the setting.

General Info on Java Game and Source Code


 In parts, the source could be cleaner, but I especially apologies for the current state of the data dir. I plan on cleaning it up at some point.


The source code is open and also contained in the zip files.


The game logs the position of the death of the player, the position of the player in fixed intervals as well as the time a player needs to finish a level.

These information are not sent over the network, they are saved in the files in the log directory.

I would be glad if anyone who plays this game sends me those files. If you do not plan on doing this, you may turn off the logging, as they may lower the performance of the game and especially the position log may take up too much disc space after a long time of playing.

Download Side Scroller Game

 lwjgl [1.59 MB]

Download Side-Scroller Game v0.2.6 [1.63 MB]

Download Side-Scroller Game v0.5 [4.39 MB]

The main difference between 0.2.6 and 0.5 is in the view (of the player), the control as well as internal code changes.

 You will need the file for both versions.

If you want to run the game with the start .sh or .bash unzip it in the same directory as you unzipped the game file.

Otherwise unzip the game anywhere  and place the contained files anywhere you like, only remember to adjust Djava.library.path argument when running the jar.

Screenshots of Game

Videos (youtube):
Side-Scroller Game v0.2.6 [Video]
Side-Scroller Game v0.5 Part 1 [Video, increased speed]
Side-Scroller Game v0.5 Part 2 [Video]

Thanks go out to the developers of slick2d.

If somebody would like to contribute (test players as well as a graphics expert are  more than welcome), contact me.

I’d like to hear which version you prefer (and why), what you do not like, bug reports, and of course the log files (to improve difficulty/flow of the levels).

Related Posts:

5 thoughts on “Java Side Scroller Jump n Run Game (with Source Code)

  1. Hello!
    I really wanted to try your game, but whenever I try to run the “game” class, I get that message: “Exception in thread “main” java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path”
    I have downloaded the latest lwjgl and added the jars in the Java build Path Library though…
    I don’t understand… Do you have any solution? :)

  2. You need the lwjgl native libraries, not the jars.
    If you downloaded and and extracted them to the same folder, it should work just running the .sh or .bat file.
    Or with this command:
    java -Djava.library.path=./../lib/lwjgl/native/linux -jar ./dist/SideScroller.jar
    If you extracted the lwjgl libraries somewhere else or if you are running on windows, you need to adjust the path.
    I hope it works now, if not, please feel free to ask more questions.

  3. Hello! Thank you for your answer!
    Now that I fixed everything with the lwjgl natives and jars part, I am stuck on another part… I got a “Exception in thread “main” java.lang.NoClassDefFoundError: GameContainer” with mainly all the imports related to org.newdawn.slick. underlined in red… Have I forgotten anything else??
    Thank you very much again!

  4. oh, you mean like in an ide? You have to link the libraries , they are in ./dist/lib/
    Did you maybe forget to link slick.jar?

Leave a Reply

Your email address will not be published.