From 0e796fef2c8f34506dc48d5cd5c3fa0bc7ddd883 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Fri, 27 Aug 2021 12:04:01 +1000 Subject: [PATCH] test level flag --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 29d233c..8c416b8 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "flag" "image" "image/color" _ "image/png" @@ -13,12 +14,16 @@ import ( "github.com/hajimehoshi/ebiten/v2" ) +var rewriteLevel1 = flag.Bool("rewrite_level_1", false, "Rewrites level1.gobz from an inbuilt struct literal") + func main() { + flag.Parse() + ebiten.SetWindowResizable(true) ebiten.SetWindowSize(640, 480) ebiten.SetWindowTitle("TODO") - if false { + if *rewriteLevel1 { writeLevel1() }