Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple game code demo in Java
Java
branch: opengl

This branch is 19 commits ahead, 11 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/lwjgl
src/com/larsbutler/gamedemo
tests/com/larsbutler/gamedemo
.classpath
.gitignore
.project
LICENSE
README.md
build.xml

README.md

Building and running

The following steps are required to build and run the jar. (An Eclipse project has been included for convenience, but the project config may need to be adjusted to suit your environment.)

  1. Build the jar: $ ant

    (ant is of course required)

  2. Symlink or copy the appropriate native lib for LWJGL to this dir.

    Example:

    $ ln -s lib/lwjgl/native/macosx/liblwjgl.jnilib

    or

    $ cp lib/lwjgl/native/macosx/liblwjgl.jnilib ./

  3. Run the jar:

    $ java -jar GameDemo.jar

PLEASE NOTE:

I hacked this all together really fast and so things may not work smoothly, depending on your environment and platform. I would love to have your feedback so I can improve this.

Game controls

Spacebar: Jump

Left arrow: Move left

Right arrow: Move right

P: Pause/unpause

Something went wrong with that request. Please try again.