8000 provide a way to pause/resume sets of systems · Issue #43 · mreinstein/ecs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
provide a way to pause/resume sets of systems #43
Open
@mreinstein

Description

@mreinstein

There are some cases where a number of systems should be turned on and off as a group. For example, when an in-game menu is open, and we want to pause the physics, sprite animations, player input, and timers, but we don't want to pause the menu system or the renderer.

Currently I have logic at the beginning of every system I want to pause that essentially looks like:

const onFixedUpdate = function () {
      if (Global.paused)
          return

      ...
}

But this is kind of ugly. It might be nice to offer a way to register systems as part of a set, and pause/resume that set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0