local framerate constant

This commit is contained in:
Baipyrus 2024-04-15 01:39:43 +02:00
parent b462335db4
commit 2bb893e9a8

View File

@ -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()