gameplay

The idea behind the project

The basic idea is to create a framework for the implementation of games of the Interactive Fiction genre, in which the player can use text commands to influence the environment and continue in the game (e.g. Zork).

Official documentation

The official documentation of the project consists in:

How to use the game creation framework?

Including the cli jar is sufficient to start programming your CLI game, as the module includes core as an internal dependency. Importing the core solely is recommended only if you want to define your personal game interface, different from the standard CLI (a web interface, for example).

You can use core or cli libraries by including them as dependencies for your Gradle project. Add this lines to the build.gradle.kts:

dependencies {

  // Add the cli as dependency. This is sufficient to start 
  // building your game. Change the version to the latest available.
  implementation("io.github.scalaquest:cli:1.0.0")
  
  // Add the core as dependency. Change the version to the latest available.
  implementation("io.github.scalaquest:core:1.0.0")
}

You can find here the latest version for the core, and here the latest version for the cli.

Alternatively, you download the libraries from the release page, and include them as project dependencies.

How to play the example games?

ScalaQuest includes some examples that shows how to correctly use the library. You can use them as your game template, if you don’t want to start from scratch. Download the latest EscapeRoom, WizardQuest or PokeQuest releases, unzip the chosen game and run it from your terminal (bin/gamename for Unix devices, bin/gamename.bat for Windows ones).