examples/sprites: Make the window resizable

This commit is contained in:
Hajime Hoshi 2021-08-08 15:31:49 +09:00
parent ec26b1a43b
commit d967f0a591

View File

@ -222,6 +222,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Sprites (Ebiten Demo)")
ebiten.SetWindowResizable(true)
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}