summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/main.go b/main.go
index 7e11f16..e56e6c4 100644
--- a/main.go
+++ b/main.go
@@ -14,6 +14,7 @@ import (
"go.wit.com/toolkits/tree"
"github.com/faiface/pixel/pixelgl"
+ "github.com/gookit/config"
)
//go:embed *.glsl
@@ -39,9 +40,10 @@ func init() {
showOptions()
- // This parses the command line arguments
- parseConfig()
-
+ config.Set("width", 640)
+ config.Set("height", 480)
+ config.Set("glDrift", 0.01)
+ config.Set("filename", "seascape.glsl")
pixelgl.Run(run)
go simpleStdin()
@@ -51,7 +53,11 @@ func init() {
// I assume it's for testing the code in a stand alone way
func main() {
// This parses the command line arguments
- parseConfig()
+ // parseConfig()
+ config.Set("width", 1024)
+ config.Set("height", 768)
+ config.Set("glDrift", 0.01)
+ config.Set("filename", "seascape.glsl")
pixelgl.Run(run)
}