From 9b7a4a71f36486a8b186339f60befc3ea1bac6f1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 6 Aug 2025 04:42:52 +0200 Subject: Engage! --- test/main.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/main.lua (limited to 'test/main.lua') diff --git a/test/main.lua b/test/main.lua new file mode 100644 index 0000000..d444192 --- /dev/null +++ b/test/main.lua @@ -0,0 +1,21 @@ +for i = 0, 3 do + print(string.format("Hi %d times", i)) +end + +local file = io.open("test/test.txt", "r") +local content = file:read("*a") +print(content) +file:close() + +open_window(600, 600, "My Game") +set_fps(60) + +while not window_should_close() do + begin_drawing() + clear_window() + + draw_fps() + end_drawing() +end + +close_window() -- cgit v1.2.3