Skip to content

Encapsulate drawing and updating of game #8

@NobodysNightmare

Description

@NobodysNightmare

To enable the game having a main menu and so on, the current draw and update should go into a new class (e.g. Layer):
The Game-Class will have a Layer-stack, that will be drawn from bottom to top. Updating should be done in two steps from the Game's perspective: "regular updates" occur for each Layer on each cycle; "focus updates" occur only for the top-most Layer (e.g. Keyboard-input)

This enables to have a game menu open, while the game continues in background.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions