Excalibur icon indicating copy to clipboard operation
Excalibur copied to clipboard

Change "priority" on System to be a static member

Open mattjennings opened this issue 1 year ago • 3 comments

Context

This would make it much easier to specify a system to run before/after another system.

class SomeSystem extends ex.System {
    static priority = ex.MotionSystem.priority - 1
}

mattjennings avatar Jun 18 '24 01:06 mattjennings

I support this, you thinking like this? image

This would definitely be a breaking change for anyone that's implemented a custom system

eonarheim avatar Jun 18 '24 01:06 eonarheim

Yup, exactly.

It appears you can actually have both an instance and static member of the same name (TIL), if we wanted to avoid the breaking change.

mattjennings avatar Jun 18 '24 01:06 mattjennings

This issue hasn't had any recent activity lately and is being marked as stale automatically.

github-actions[bot] avatar Aug 18 '24 00:08 github-actions[bot]