doc: Update examples/sprites

This commit is contained in:
Hajime Hoshi 2017-05-29 22:56:56 +09:00
parent 8e1d3a151e
commit 5dffe80a1a
2 changed files with 2 additions and 6 deletions

View File

@ -133,9 +133,7 @@ func update(screen *ebiten.Image) error {
msg := fmt.Sprintf(`FPS: %0.2f
Num of sprites: %d
Press <- or -> to change the number of sprites`, ebiten.CurrentFPS(), sprites.num)
if err := ebitenutil.DebugPrint(screen, msg); err != nil {
return err
}
ebitenutil.DebugPrint(screen, msg)
return nil
}

View File

@ -120,9 +120,7 @@ func update(screen *ebiten.Image) error {
msg := fmt.Sprintf(`FPS: %0.2f
Num of sprites: %d
Press <- or -> to change the number of sprites`, ebiten.CurrentFPS(), sprites.num)
if err := ebitenutil.DebugPrint(screen, msg); err != nil {
return err
}
ebitenutil.DebugPrint(screen, msg)
return nil
}