From 2bb893e9a84e016e7cc30b62975f3fe1980a2518 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 15 Apr 2024 01:39:43 +0200 Subject: [PATCH] local framerate constant --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 46ec0a0..cc503b8 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,8 @@ func output(client *resty.Client, url string, width, height int, arr [][]Cell) { } func main() { + const FPS = 10 + // Load .env file if it exists err := godotenv.Load(".env") if err != nil { @@ -53,7 +55,7 @@ func main() { // Run Game of Life done := setup(func(c [][]Cell) { output(client, url, width, height, c) - }, width, height, 10) + }, width, height, FPS) // Wait for user input to quit fmt.Scanln()