Source

Ghost Trap /

Filename Size Date modified Message
fonts
gfx
lib
sfx
src
64 B
674 B
1.7 KB
622 B

Ghost Trap

Ghost Trap is a classic 3-in-a-row puzzle game (like Zookeeper / Bejuweled) written in the Scala programming language on top of the JVM.

Main Menu

Main Menu

Game in action

Game in action

Running the game

If you just want to run the game, download the zip file in the download section. Ghost Trap comes with all libraries it needs (scala-library/slick/lwjgl) in the source. If you don't want to compile it yourself, you need to also download the ´lib.zip´ file and extract it contents into a lib sub-directory in the Ghost Trap directory.

Install the Scala compiler

In order to build the game, you need the Scala compiler (scalac).

Either download Scala from its website, or use your package manager to get it.

Ghost Trap works fine with Scala 2.9.0.1 (and probably newer versions).

Get the source!

Get the Ghost Trap source by cloning the Ghost Trap repository

$ hg clone https://bitbucket.org/BigYellowCactus/ghost-trap

Build the game

There's a build script included with the source. Ensure it's executable and run it

$ chmod +x build.sh && ./build.sh

Note: The build script is for Linux/Unix-like machines. To compile Ghost Trap on windows, you have to port the build script yourself (shouldn't be that hard at all).

Run the game

The build script creates a directory compiled.

There you'll find to scripts: run.sh and run.bat.

On Windows, run run.bat.

On Linux, run run.sh.