A JavaFX maven prosject made as a semesterproject in Programming 2 at NTNU
By: Stian Lyng & Olav Sie Rotvær
- Jacoco: https://gruppe_60.pages.stud.idi.ntnu.no/paths/jacoco/index.html
- JavaDoc: https://gruppe_60.pages.stud.idi.ntnu.no/paths/apidocs/index.html
- 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
- install dependencies and create JAR.
mvn clean install
- Run the JAR or run the application directly.
mvn javafx:run
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
}
]
}
]
}
]
}