14 lines
815 B
Plaintext
14 lines
815 B
Plaintext
At first we had a single scene at a time. This can't support some features we want.
|
|
|
|
We can have a stack of scenes.
|
|
A scene is often a room but it can also be a modal dialog.
|
|
When moving from one room to another it replaces the topmost scene but modal interactions push onto the stack.
|
|
Example: Manager's office -> Access the safe -> Textbox -> Pause/quit menu.
|
|
|
|
Hypothetically we could also have something like a dream world which keeps the outside-dream state on the stack.
|
|
|
|
Scenes come in different types. A room is a typical scene. But we have minigames like the safe, textboxes and menus.
|
|
All rooms should inherit some common behaviour like moving the player character.
|
|
All menus should inherit menu behaviour. Neither applies to the safe cracking.
|
|
|
|
Things from all scenes are rendered in scene stacking order. |