Implementing a quest system
Implementing a quest system is a large topic, so it's a good idea to split it into several separate chunks of work that are a more manageable size. To create a system that works for our game and is easily extendable, we'll need to complete the following tasks:
- Create a data structure to hold individual quest information. This information will include the current quest status (whether it is unassigned, assigned, or completed) and the name of the quest.
- Design a method of managing the quest status of all of the quests in the game. We need to be able to query the status of a quest at any time.
- Create a way to assign quests to the player.
- Place a quest item in the game world. The goal of the quest in this game will be to find an object, so we'll need to create and place that item in one of the levels.
We'll start by creating the structure to store quest items and then build on top of this basic structure by creating...