func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error { chError = ebiten.RunWithoutMainLoop(f, width, height, scale, title) return nil }
// Start starts the game and returns immediately. // // Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop. func Start(f func(*ebiten.Image) error, width, height, scale int, title string) (EventDispatcher, error) { chError = ebiten.RunWithoutMainLoop(f, width, height, scale, title) return &eventDispatcher{ touches: map[int]position{}, }, nil }