From cf8aa0a7b247e094a55c31db5df27d8e66f79a9b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 24 Jul 2021 15:46:02 +0900 Subject: [PATCH] ebiten: Fix old and wrong comments --- run.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/run.go b/run.go index ce39cea01..f74296732 100644 --- a/run.go +++ b/run.go @@ -130,23 +130,9 @@ func (i *imageDumperGame) Layout(outsideWidth, outsideHeight int) (screenWidth, // RunGame starts the main loop and runs the game. // game's Update function is called every tick to update the game logic. -// game's Draw function is, if it exists, called every frame to draw the screen. +// game's Draw function is called every frame to draw the screen. // game's Layout function is called when necessary, and you can specify the logical screen size by the function. // -// game must implement Game interface. -// Game's Draw function is optional, but it is recommended to implement Draw to seperate updating the logic and -// rendering. -// -// RunGame is a more flexibile form of Run due to game's Layout function. -// 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'. -// -// While Run specifies the window size, RunGame does not. -// You need to call SetWindowSize before RunGame if you want. -// Otherwise, a default window size is adopted. -// -// Some functions (ScreenScale, SetScreenScale, SetScreenSize) are not available with RunGame. -// // On browsers, it is strongly recommended to use iframe if you embed an Ebiten application in your website. // // RunGame must be called on the main thread.