You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
407 B

//go:build !js || !wasm
// +build !js !wasm
package main
import (
"flag"
"github.com/hajimehoshi/ebiten/v2"
)
func parseFlags(g *Game) {
var fullscreen bool
flag.BoolVar(&fullscreen, "fullscreen", false, "run in fullscreen mode")
flag.BoolVar(&g.NativeResolution, "native", false, "display at native resolution (default: 320x240)")
flag.Parse()
if fullscreen {
ebiten.SetFullscreen(true)
}
}