docs: Add explanation about IsRunningSlowly

Fixes #508
This commit is contained in:
Hajime Hoshi 2018-04-01 20:44:39 +09:00
parent 75ac8e6f2b
commit 861c737495

15
doc.go
View File

@ -16,11 +16,24 @@
//
// You can start the game by calling the function Run.
//
// // update is called every frame (1/60 [s]).
// func update(screen *ebiten.Image) error {
// // Define your game.
//
// // Write your game's logical update.
//
// if IsRunningSlowly() {
// // When the game is running slowly, the rendering result
// // will not be adopted.
// return nil
// }
//
// // Write your game's rendering.
//
// return nil
// }
//
// func main() {
// // Call ebiten.Run to start your game loop.
// ebiten.Run(update, 320, 240, 2, "Your game's title")
// }
package ebiten