GuillemBarroso / CLing

2D survival game using command line
MIT License
3 stars 1 forks source link

Message when entering a room / re-thinking room-maps #26

Closed GuillemBarroso closed 1 year ago

GuillemBarroso commented 1 year ago

Similarly to all text-based games. A message is shown every time a player enters a new room.

In text-based games, this message contains a description of the room, exits and all the details for the player to be able to interact with this room.

Instead, since here we have a graphical description of the room, this message will not need to be as descriptive. I am imagining something like a brief description of the room and some hints on what to do there, how to find a hidden door, etc.

I am thinking that this message should be displayed both in the command line and in the game screen for a few seconds after entering the room. This will allow the user to quickly read the message on screen but also to go back to the same message later on the CL if needed.

This message will need to be a property of the Room object. Another element in the Room object will be the map of that room. This will require a re-thinking of how the maps are currently defined. Should we have all maps in a single .py module? Or a module for each room with the description message and the map?