It is about a person waking up in a strange place with portals and other paths that he/she can use.
depending on your choices you can either move to the next or previous level, find enemies,
chess with items, or nothing at all; all these events are random.
By using OOP, I made a doubly-linked list data structure to populate the nodes with level objects,
each level object contains four rooms all of these are interconnected. Allowing the player to move between
rooms within the level. Since the leves are within nodes this allows us to move the player between levels.
Created the necessary classes according to the design in mind. I used these classes accordingly, along with conditionals and loops, to
obtain the desired control flow of the game. I just wanted to create a simple game by using a data structure.
Download the source files and run it on your Java IDE.
- Input your name and answer the questions, then the game will begin.
- Once the intro ends, you will be able to perform actions, these actions will be printed such as [walk] or [inventory]
- Experiment and check what you can do.