Course:CPSC312-2023/PrologScrolls

From UBC Wiki

What is the problem?

We are planning to make a text based adventure game. We have based our design off of popular RPGs like Skyrim, World of Warcraft etc.

What is the something extra?

We are planning to implement character creation at the beginning of the game. This will change the default values for the players statistics. It will also influence gameplay slightly depending on what character design the user chooses.

What did we learn from doing this?

We implemented character creation, and since we had extra time we also decided to add in a levelling system. The character now has certain traits that will help in different situations based on what character you chose at the beginning. The levelling system increases the players stats to make gameplay more entertaining.

We found that Prolog was a good language for writing a text-based adventure game. In an adventure game, the player typically interacts with various objects, characters, and environments, and needs to make decisions based on their observations and actions. Prolog's ability to handle complex logical relationships makes it well-suited to representing the game world and the interactions within it. While adding in the character creation and levelling, using Prolog was ideal as we were able to adjust the player's abilities, strengths, and weaknesses as the game progresses by adding or removing predicates.

Prolog's "backtracking" feature was very helpful, it allows the game to adapt to the player's choices in real-time. This means that the game can provide dynamic responses and adjust the gameplay experience based on what the player does.

In summary, Prolog's powerful logical capabilities and flexibility make it an excellent choice for developing adventure-based text games.


https://github.com/merrinsj/PrologScrolls