mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ui: Update comments of RunGame
This commit is contained in:
parent
807f91e6ca
commit
1566bb1cd3
4
run.go
4
run.go
@ -176,10 +176,10 @@ func Run(f func(*Image) error, width, height int, scale float64, title string) e
|
|||||||
|
|
||||||
// RunGame starts the main loop and runs the game.
|
// RunGame starts the main loop and runs the game.
|
||||||
// game's Update function is called every frame.
|
// game's Update function is called every frame.
|
||||||
// game's Layout function is called when necessary, and you can specify the logical screen size in the function.
|
// game's Layout function is called when necessary, and you can specify the logical screen size by the function.
|
||||||
//
|
//
|
||||||
// RunGame is a more flexibile form of Run due to 'Layout' function.
|
// RunGame is a more flexibile form of Run due to 'Layout' function.
|
||||||
// The window is resizable if you use RunGame, while you cannot if you use Run.
|
// You can make a resizable window if you use RunGame, while you cannot if you use Run.
|
||||||
// RunGame is more sophisticated way than Run and hides the notion of 'scale'.
|
// RunGame is more sophisticated way than Run and hides the notion of 'scale'.
|
||||||
//
|
//
|
||||||
// While Run specifies the window size, RunGame does not.
|
// While Run specifies the window size, RunGame does not.
|
||||||
|
Loading…
Reference in New Issue
Block a user