mobile: Start now returns nil

This commit is contained in:
Hajime Hoshi 2017-04-18 02:49:14 +09:00
parent 5c8cbab017
commit 112f1419d1
3 changed files with 6 additions and 5 deletions

View File

@ -26,6 +26,5 @@ func update() error {
return nil
}
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
return nil
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) {
}

View File

@ -32,7 +32,6 @@ func update() error {
return ui.Render(chError)
}
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) {
chError = ebiten.RunWithoutMainLoop(f, width, height, scale, title)
return nil
}

View File

@ -23,8 +23,11 @@ import (
// Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop.
//
// The unit of width/height is device-independent pixel (dp on Android and point on iOS).
//
// Start always returns nil as of 1.5.0-alpha.
func Start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
return start(f, width, height, scale, title)
start(f, width, height, scale, title)
return nil
}
// Update updates and renders the game.