mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: add comments about termination
This commit is contained in:
parent
141d64b0f5
commit
fc5cef124f
3
run.go
3
run.go
@ -188,6 +188,9 @@ func (i *imageDumperGame) Layout(outsideWidth, outsideHeight int) (screenWidth,
|
||||
// use errors.Is when you check the returned error is the error you want, rather than comparing the values
|
||||
// with == or != directly.
|
||||
//
|
||||
// If you want to terminate a game on desktops, it is totally fine to define your own error value, return it at
|
||||
// Update, and check whether the returned error value from RunGame is the same as the value you defined.
|
||||
//
|
||||
// The size unit is device-independent pixel.
|
||||
//
|
||||
// Don't call RunGame twice or more in one process.
|
||||
|
Loading…
Reference in New Issue
Block a user