Investigate how Context could be broken up #209
Labels
API: Breaking
Indicates that resolving the issue would be a breaking change.
Area: Game Loop
Issues relating to the main game loop.
Type: Investigation
Ongoing investigations and unanswered questions.
Summary:
Tetra using a giant
Context
struct for all of its internal state is a bit of a pain - it makes it impossible for the internals of the renderer to use the publicgraphics
API (because you can't passctx
and something stored inctx
into the same method), and it's tricky to break it up into something that people can use in a custom game loop.For me, the main constraints on making a change like this would be:
Context
away in astatic
and pretend it's not there.I'm not sure if there's an API that meets those criteria! But it's worth thinking about.
The text was updated successfully, but these errors were encountered: