Skip to content

Redesign the interface for complex, high-level tasks #3

@peoro

Description

@peoro

High-level tasks are tasks that NGU.js should automatize by taking complete control of the game for an extended period of time. The user must be able to interrupt the long running task at any point.

In order to express non-trivial behaviors, it would be really useful to combine simpler tasks together.

The LoopRunner structure we're currently using is way too limited. It can only run one task (loop) at a time and uses exceptions to control the flow.
Running a sub-task within a loop is a dirty hack, tough to write and to understand.

Let's try to find out and implement a nicer design.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions