ZDDduesseldorf / zdd_adventure2023

Old-school text adventure playing in the ZDD building.
MIT License
7 stars 9 forks source link

Added new item to the room "movie theater" called "teleportation machine" | issue_16 #32

Closed AlhaririAnas closed 1 year ago

AlhaririAnas commented 1 year ago

In the newly created room "movie theater," a non-mobile item named "teleportation machine" has been added. The requirement was for this item to enable the player to teleport from one room to another. However, technically, it was challenging to implement, as I found that a class cannot inherit from two other classes simultaneously. Consequently, after the player discovers the "teleportation machine", he/she is asked if he/she wants to travel to (a random) location using it. The player is warned in advance that the destination may not always be favorable. If the player chooses to accept the offer, he/she will be taken outside the ZDD building, and the game will end at this point.