zoepfister / maze-secret

1 stars 0 forks source link

Dialogs #35

Closed emanuelegoldin closed 1 day ago

emanuelegoldin commented 2 days ago

Overview

Simple implementation to show textboxes on screen. The main purpose is to provide hints to the player about elements/areas of interest.

Dialog manager: singleton entity that handle the presentation to the player if multi-lines dialog. A timer define each textbox lifespan. TextBox: entity used to show a single line of a dialog

Usage example

The room_trigger entity will leverage the dialog manager to show hints related to rooms still to be solved by the player. For instance, the torch room is considered "solved" as soon as the player acquire the torch.

The logic is to connect to a signal to switch off the hints for a given room.

Additional changes