diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-06 04:42:52 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-06 04:42:52 +0200 |
| commit | 9b7a4a71f36486a8b186339f60befc3ea1bac6f1 (patch) | |
| tree | ec5733a40d531b906e15e8168b60050b4439c673 /test | |
| download | bidi-9b7a4a71f36486a8b186339f60befc3ea1bac6f1.tar.gz | |
Engage!
Diffstat (limited to 'test')
| -rw-r--r-- | test/main.lua | 21 | ||||
| -rw-r--r-- | test/test.txt | 1 |
2 files changed, 22 insertions, 0 deletions
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() diff --git a/test/test.txt b/test/test.txt new file mode 100644 index 0000000..37ed904 --- /dev/null +++ b/test/test.txt @@ -0,0 +1 @@ +This is the contents of test.txt file. |
