test level flag

This commit is contained in:
Josh Deprez 2021-08-27 12:04:01 +10:00
parent 263e197f32
commit 0e796fef2c

View file

@ -1,6 +1,7 @@
package main package main
import ( import (
"flag"
"image" "image"
"image/color" "image/color"
_ "image/png" _ "image/png"
@ -13,12 +14,16 @@ import (
"github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2"
) )
var rewriteLevel1 = flag.Bool("rewrite_level_1", false, "Rewrites level1.gobz from an inbuilt struct literal")
func main() { func main() {
flag.Parse()
ebiten.SetWindowResizable(true) ebiten.SetWindowResizable(true)
ebiten.SetWindowSize(640, 480) ebiten.SetWindowSize(640, 480)
ebiten.SetWindowTitle("TODO") ebiten.SetWindowTitle("TODO")
if false { if *rewriteLevel1 {
writeLevel1() writeLevel1()
} }