- Java 72.1%
- Python 27.9%
Ghostinator
This repository contains the source code and assets for Ghostinator.
How to Run
The Ghostinator_preprocessing.py script is located in the python folder. It searches the rooms folder for JSON files (the room definitions from the HouseExpo corpus) and generates the images in the rooms/computed folder and the level definitions in the rooms/levels folder based on this.
For the script to run, the Python packages pyroomacoustics, shapely, tqdm must be installed (tested with Python 3.10). Since the outputs are already included in the repository and generating them takes some time, this step is probably not too important. It would be more relevant if the game is then to be extended by further levels.
The entire repository is set up as a Gradle project, i.e. the Java programme can be run by means of gradlew run in the main directory (alternatively, the Java programme can also be called up via the entry point java/de/gurkenlabs/ghostinator/Program.java). This requires a JDK 17. With the current configuration, it is also necessary that the LITIENGINE repository has been cloned into a folder parallel to the main directory. The engine could also be obtained dynamically from the Maven Central repository by changing the dependency in build.gradle to implementation 'de.gurkenlabs:litiengine:0.5.2' and removing the includeBuild "../litiengine" entry from settings.gradle.