Stianlyng / paths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paths Adventure Game

A JavaFX maven prosject made as a semesterproject in Programming 2 at NTNU

Semester project in Programming 2 at NTNU

By: Stian Lyng & Olav Sie Rotvær

Links

Install

  1. Clone Paths:

Using SSH: git@gitlab.stud.idi.ntnu.no:gruppe_60/paths.git

Using HTTPS: https://gitlab.stud.idi.ntnu.no/gruppe_60/paths.git

  1. install dependencies and create JAR.

mvn clean install

  1. Run the JAR or run the application directly.

mvn javafx:run

Usage

If you want to add custom stories, it kan be imported using the importer inside the game. The format of the textfile should be:

Title Of the Story

:: First Passage
This is the first passage, and this is the text the player has to base the answer of.
[Go to the second passage](Second Passage)
[Go to the third passsage](Third Passage)

:: Second Passage
This is the second passage
[Go to the third passage](Third Passage)
[Go back](First Passage)

Or you can create a story with custom styling and actions by placing a json file inside the resources/stories directory. The format of the json file should be:

{
  "title": "The Title of the Story",
  "passages": [
    {
      "title": "First Passage",
      "content": "This is the first passage.",
      "background": "background.jpg",
      "player": "player.png",
      "enemy": "enemy.png",
      "isFight": false,
      "links": [
        {
          "text": "Go to the next passage",
          "reference": "Second Passage",
          "actions": [
            {
              "type": "HEALTH",
              "value": 100
            },
            {
              "type": "GOLD",
              "value": 100
            },
            {
              "type": "SCORE",
              "value": 100
            }
          ]
        }
      ]
    }
    ]
}

About


Languages

Language:Java 97.2%Language:CSS 2.8%