From 438f366ba419c93c6fbd808f79397af1ae41ecd4 Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Fri, 27 May 2022 08:24:56 -0400 Subject: [PATCH] add `EXIT_WHEN_DONE = false` --- examples/Pong-Example-Project/script.zs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/Pong-Example-Project/script.zs b/examples/Pong-Example-Project/script.zs index 7f75a3c..2be1b22 100644 --- a/examples/Pong-Example-Project/script.zs +++ b/examples/Pong-Example-Project/script.zs @@ -16,6 +16,8 @@ bool aiOn = false // so if you never call ZS.Graphics.Init, then Start won't run func Main() { + EXIT_WHEN_DONE = false + // Immediately creates the window, then Start(), then the game loop. The game loop calls Update() every frame ZS.Graphics.Init("This is a pong game", SCREENW, SCREENH) }