hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
11.12k stars 664 forks source link

mobile: add `SetGameOptions` to replace `RunGameOptions` #3089

Open hajimehoshi opened 2 months ago

hajimehoshi commented 2 months ago

Operating System

What feature would you like to be added?

RunGameOptions.StrictContextRestoration was added recently. There is no real use case to use this with ebiten.RunGameWithOptions, and this works only with mobile.SetGameWithOptions.

In order to improve UX, let's define SetGameOptions like this:

type SetGameOptions struct {
    RunGameOptions
    StrictContextRestoration bool
}

As this is a breaking change, let's do this in v3.

Why is this needed?

No response