Update comments

This commit is contained in:
Hajime Hoshi 2019-12-22 03:50:30 +09:00
parent 7d56e4335e
commit 0e63241bcb
2 changed files with 4 additions and 1 deletions

2
doc.go
View File

@ -77,7 +77,7 @@
// //
// In the API document, 'the main thread' means the goroutine in init(), main() and their callees without 'go' // In the API document, 'the main thread' means the goroutine in init(), main() and their callees without 'go'
// statement. It is assured that 'the main thread' runs on the OS main thread. There are some Ebiten functions that // statement. It is assured that 'the main thread' runs on the OS main thread. There are some Ebiten functions that
// must be called on the main thread under some conditions (typically, before ebiten.Run is called). // must be called on the main thread under some conditions (typically, before ebiten.RunGame is called).
// //
// Environment variables // Environment variables
// //

3
run.go
View File

@ -31,6 +31,9 @@ type Game interface {
// Layout accepts a native outside size in device-independent pixels and returns the game's logical screen // Layout accepts a native outside size in device-independent pixels and returns the game's logical screen
// size. // size.
// //
// On desktops, the outside is a window or a monitor (fullscreen mode). On browsers, the outside is a body
// element. On mobiles, the outside is the phone's entire screen.
//
// The screen scale is automatically adjusted to fit the outside. // The screen scale is automatically adjusted to fit the outside.
// //
// Layout is called at an initialization and whenever the outside size is changed. // Layout is called at an initialization and whenever the outside size is changed.