GuillemBarroso / CLing

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

Create ``Room`` object #5

Closed GuillemBarroso closed 1 year ago

GuillemBarroso commented 1 year ago

Implement Room object that contains all the information of a particular room in the map.

The information can be the limits of the room, the objects/NPCs that the user can interact with, etc.

There will be two different types of rooms. Inside rooms and outside rooms. Inside rooms will be actual rooms of a house, caves and so on. There, the user will move and the room view will be fixed.

Outside rooms will be bigger, like an outdoors map. There, the user will be always in the center of the screen and the room view will adapt to the player's position.

All rooms must have initial coordinates in which the player will be placed when appearing in that room.