mobile: Remove viewID arg

This commit is contained in:
Hajime Hoshi 2016-05-28 19:00:50 +09:00
parent 2dd1e9c567
commit 405ad9a136
2 changed files with 3 additions and 3 deletions

View File

@ -33,6 +33,6 @@ import (
type EventDispatcher mobile.EventDispatcher
func Start(viewID int) (EventDispatcher, error) {
return mobile.Start(example.Update, example.ScreenWidth, example.ScreenHeight, 2, "Mobile (Ebiten Demo)", viewID)
func Start() (EventDispatcher, error) {
return mobile.Start(example.Update, example.ScreenWidth, example.ScreenHeight, 2, "Mobile (Ebiten Demo)")
}

View File

@ -40,7 +40,7 @@ type EventDispatcher interface {
// 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, viewID int) (EventDispatcher, error) {
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{}, nil
}